-
Notifications
You must be signed in to change notification settings - Fork 4
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
Hydration error #70
Labels
wontfix
This will not be worked on
Comments
Thank you for the submission! |
adjust https://github.com/ubugeeei/reading-vuejs-core-vapor/blob/main/.vitepress/plugins/markdown-it/github/index.ts to this: export const previewGitHubSource: PluginSimple = (md) => {
md.block.ruler.before('paragraph', 'github_link_block', (state, startLine) => {
const lineText = state.getLines(startLine, startLine + 1, state.blkIndent, false).trim()
if (!isGithubUrl(lineText)) {
return false
}
const token = state.push('github_link', '', 0)
token.content = lineText
token.map = [startLine, startLine + 1]
state.line = startLine + 1
return true
})
md.renderer.rules.github_link = (tokens, idx) => {
const c = tokens[idx].content
const rawHtml = fetchHtmlSync(c)
const parsed = parse(rawHtml, c)
const res = renderToHtml(parsed)
return res
}
} |
Wow... how kind you are... |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2024-09-25.12-57-45.mp4
The text was updated successfully, but these errors were encountered: