docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.47k stars 5.67k forks source link

chore: upgrade marked from 12.0.2 to 13.0.2 #2467

Closed Koooooo-7 closed 2 months ago

Koooooo-7 commented 2 months ago

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:

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docsify-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 20, 2024 8:22am