Closed Koooooo-7 closed 4 months ago
Since the markedjs release to v13, all the renderer's params change to TOKENS instead of the pre versions' behaviors. So, we need manually build the contents as the default renderer of markedjs in pre versions to get those contents which we need.
renderer
Refer
The default renderer impl of markedjs markedjs/Renderer.ts The changes before the v13. markedjs/Instance.ts The new params for each TOKEN. markedjs/Tokens.ts
close #2461
Yes No
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Summary
Since the markedjs release to v13, all the
renderer
's params change to TOKENS instead of the pre versions' behaviors. So, we need manually build the contents as the default renderer of markedjs in pre versions to get those contents which we need.Refer
The default renderer impl of markedjs markedjs/Renderer.ts The changes before the v13. markedjs/Instance.ts The new params for each TOKEN. markedjs/Tokens.ts
close #2461
Related issue, if any:
What kind of change does this PR introduce?
For any code change,
Does this PR introduce a breaking change?
Yes No
Tested in the following browsers: