Open dwgray opened 2 days ago
4082 should fix this 👀
Agreed - sorry, I looked at open issues, but I didn't think to look at open PRs.
It looks like this PR has been open through several releases, is there anything I can do to support getting this into the next release?
Describe the bug
I am using a markdown-it plugin to add classes to
<table>
tags. This was broken by #3932.If you look at: https://github.com/vuejs/vitepress/pull/3932/files#diff-332834eb76757b8e31926e411cef34f7207564d0bf5fd00a185b41d97b3403bf
This breaks the chaining of any other modifications to the table_open rule. My understanding is that you should use the methods on token to modify the token and then chain to the existing rule. This post has a decent description: https://publishing-project.rivendellweb.net/customizing-markdown-it/#adding-classes-to-list-and-list-items
It looks like the overriding of
math_blocks
further down in the file does chain the original renderer.Reproduction
In
config.mts
Expected behavior
vitepress markdown.it plugin doesn't break other markdown.it plugin
System Info
Additional context
No response
Validations