You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering a document with headers that are below the specified level, an error is thrown. The below example illustrates the problem.
If the # Title declaration is removed, the error is no longer thrown. So it appears that headers below the specified level cause this error.
markdownIt=require('markdown-it')
content="""# TitleLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.## Sub TitleLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.### Sub Sub TitleLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."""rendered=markdownIt()
.userequire('markdown-it-anchor'), level:2, permalink:true
.render(content)
console.log rendered
The text was updated successfully, but these errors were encountered:
When rendering a document with headers that are below the specified
level
, an error is thrown. The below example illustrates the problem.If the
# Title
declaration is removed, the error is no longer thrown. So it appears that headers below the specified level cause this error.The text was updated successfully, but these errors were encountered: