Skip to content

How to add a new option? #3

Open
@timaschew

Description

@timaschew

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions