Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a new option? #3

Open
timaschew opened this issue Apr 25, 2019 · 0 comments
Open

How to add a new option? #3

timaschew opened this issue Apr 25, 2019 · 0 comments

Comments

@timaschew
Copy link

I've tried to introduce a new option transcludeAutowhich 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant