8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Commonmarker automatically inserts an tag in front of every header.
Given the Markdown
## title
calling to_html produces:
<h2><a href="#title" aria-hidden="true" class="anchor" id="title"></a>title</h2>
I’d like to stop Commonmarker from adding these anchor links when converting Markdown.
Is there an option to disable this behavior?
The text was updated successfully, but these errors were encountered:
Yes! This is the header_ids extension option. See:
header_ids
> Commonmarker.to_html("## abc", options: {extension: {header_ids: ""}}) # default => "<h2><a href=\"#abc\" aria-hidden=\"true\" class=\"anchor\" id=\"abc\"></a>abc</h2>\n" > Commonmarker.to_html("## abc", options: {extension: {header_ids: nil}}) => "<h2>abc</h2>\n"
Sorry, something went wrong.
Thank you @kivikakk !
My pleasure! 😸 🧡
No branches or pull requests
Commonmarker automatically inserts an tag in front of every header.
Given the Markdown
## title
calling to_html produces:
I’d like to stop Commonmarker from adding these anchor links when converting Markdown.
Is there an option to disable this behavior?
The text was updated successfully, but these errors were encountered: