Replies: 4 comments 1 reply
-
@travkin79, it is a left-over from legacy implementation. You are right the I will be addressing all the accumulated PR's and bugs in the next couple of weeks. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick answer, @vsch. I've prepared a pull request #566 to fix that. |
Beta Was this translation helpful? Give feedback.
-
Hi @vsch, I'm using flexmark 0.64.6 now and I'm having
I have a use case, where I want to render something like When debugging, I see
Shouldn't the The final result is something I wouldn't expect with these settings, a heading without any ID: By the way, I also tried using flexmark 0.64.8, but I couldn't read the Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @vsch, Thank you and best regards. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if I observe a bug or if it is desired behavior.
I'm using the Markdown parser and HTML renderer with the following settings (besides others):
I expect:
If I explicitly set header IDs in headings, they will be rendered, but no IDs will be generated for headings that do not have any headings ID in Markdown source code. For example:
should become
Instead I see:
If I explicitly set header IDs in headings, they will be rendered. If they are not set, they will be generated and rendered, too. For the example from above, we'll get:
Do I misunderstand something or is that a bug?
I traced down the source code to the following statement in
com.vladsch.flexmark.html.HtmlRenderer#MainNodeRenderer
:I think, an ID generator should only be created if the
generateHeaderIds
settings is active and should be independent from the renderHeaderId setting. Do you agree?Beta Was this translation helpful? Give feedback.
All reactions