Skip to content

Will the code help you? #157

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

Closed
u19941117 opened this issue Nov 6, 2022 · 2 comments
Closed

Will the code help you? #157

u19941117 opened this issue Nov 6, 2022 · 2 comments

Comments

@u19941117
Copy link

Will the code help you?

<script src="https://cdn.jsdelivr.net/npm/marked@4"></script>
<script>
let newMarked = marked; // I find that marked will be overwritten by Docsify, so save it before
window.$docsify={
  markdown: (originMarked, originRenderer) => newMarked.parse // markdown: newMarked.parse
};
</script>

I saw it from upupming/docsify-katex#36. I think replacing 'marked' with 'marked.parse' will help the latest marked work well in Docsify.

// Docsify library source code
import {marked.parse as marked} from marked // the newest version

Originally posted by @dzylikecode in docsifyjs/docsify#1885 (comment)

Originally posted by @u19941117 in https://github.com/u19941117/desktop-tutorial/issues/1

@Alfiekmote20
Copy link

Alfiekmote20 commented Nov 6, 2022 via email

@Alfiekmote20
Copy link

Alfiekmote20 commented Nov 6, 2022 via email

@heiskr heiskr closed this as completed Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants