Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse heading error #2526

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

sy-records
Copy link
Member

Summary

see https://github.com/markedjs/marked/blob/master/src/Renderer.ts#L53

Fix:

https://docsify-preview.vercel.app/preview/#/zh-cn/

marked.esm.js:21 Uncaught (in promise) Error: Token with "link" type was not found.
Please report this to https://github.com/markedjs/marked.
    at ne.parse (marked.esm.js:21:1)
    at Object.heading (markdown-to-txt.js:62:25)
    at ne.parse (marked.esm.js:21:1)
    at parse (marked.esm.js:21:1)
    at Object.parse (marked.esm.js:15:21)
    at Function.oe [as parse] (marked.esm.js:15:21)
    at de (markdown-to-txt.js:191:28)
    at search.js:154:36
    at Array.forEach (<anonymous>)
    at search.js:109:10

Related issue, if any:

What kind of change does this PR introduce?

Bugfix

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

No

Yes
No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

Copy link

vercel bot commented Jan 6, 2025

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 Jan 6, 2025 4:21am

Copy link
Member

@Koooooo-7 Koooooo-7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!
LGTM.

@sy-records sy-records merged commit 561c777 into docsifyjs:develop Jan 8, 2025
9 checks passed
@sy-records sy-records deleted the fix/parse branch January 8, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants