Closed grant-g closed 2 months ago
marked doesn't generate tokens for link definitions, it just returns names+values. As a result the link definition characters aren't being accounted for, which throws off the attribute->element mappings. Best path may be to detect this case and generate place-holder tokens, but getting them placed correctly could be tricky.
A better approach would probably be to identify the text ranges of all of these in the source text before passing to marked, and then adjusting the attribute->element mappings accordingly.
Confirmed that this works as expected with the latest, likely due to changing the underlying md->HTML renderer off of marked. Closing Issue.
For some reason the
release-notes
id is being associated with the paragraph below it instead of the header above it.