Description
I've tried to introduce a new option transcludeAuto
which is similar to the transcludeWith
but it didn't work. The pattern was found and also the _content
was filled up with all the lines. But at the end in the browser it showed up: No lines matched.
. It was very weird because it even didn't log this line (No lines matched) to the terminal (this logic I've added as well).
So I ended up replacing the logic with the existing transcludeWIth
. This way it was working as expected. Also the No lines matched was printed to the terminal. It feels like vuepress was using some cached functions of plugins. But I did restart the process, do they realy can cache it across processes?
Here is the code: https://github.com/timaschew/markdown-it-vuepress-code-snippet-enhanced/blob/6cab329cbc570010486e53687f9ae1c081ddcbef/src/plugin.js#L116-L133