-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
[AutoIdentifiers] Not created when rendering a MarkdownDocument #646
Comments
You have to pass the pipeline to |
thanks @MihaZupan, I have it now but this was not very intuitive ;) Why should I pass the pipeline to both parse the document AND to render it. Maybe it can be a future improvment 😉 |
The pipeline contains both the configured parsers and the configured renderers. For the case of the auto-identifier extension, the extension hooks into existing parsers.
In that case, the renderer is not modified (because the heading renderer is registered by default), but for others, they require to register their renderers as well: markdig/src/Markdig/Extensions/Abbreviations/AbbreviationExtension.cs Lines 15 to 26 in 5f80d86
|
Hi,
I get the following issue with the
AutoIdentifierExtension
.Repro step
Using this code:
It gives me this result:
res =
<h1 id=\"hey-isabelle-nice-to-meet-you\">Hey Isabelle, nice to meet you</h1>\n
res2 =
<h1>Hey Isabelle, nice to meet you</h1>\n
The content of res is the expected result.
Workaround
or
The text was updated successfully, but these errors were encountered: