[Feature Request] pass filename to filter
option of @shikijs/vitepress-twoslash
#628
Labels
filter
option of @shikijs/vitepress-twoslash
#628
Background:
I'm writing package documents with Vitepress +
@shikijs/vitepress-twoslash
, which makes the readability of code blocks much higher. I setexplicitTrigger
tofalse
to enable Twoslash for all code blocks.But when I integrate TypeDoc +
typedoc-plugin-markdown
into it, some errors occurred since TypeDoc renders@default
to code blocks, which may not strictly follow TS syntax.For example, when writing
Anyone knows it meaning. However, Twoslash is not able to recognize what
this
actually refers to.If code blocks' position can be passed to the
filter
option, it'll be easy to avoid the trouble.The text was updated successfully, but these errors were encountered: