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
Is your feature request related to a problem? Please describe.
if the markdown contains custom header anchor ids, then the cross referencing links that are produced by mark don't respect the custom ids. in fact, the custom ids become visible in the html as part of the header.
anchors currently have some more issues, still something that needs to be looked at. If you have time to look into a fix, a PR is welcome!
See also: #47 #492
but just as a workaround, my google docs had TOCs in them and those where the ones that were causing me issues. I removed the google doc TOC, exported to markdown and removed the custom ids sed 's/{.*}//g' input.md > input2.md and added the macro for toc in mark <!-- Include: ac:toc --> ... this pretty much works.
i think that any cross references in the google doc will fail. but i don't have them so far.
Is your feature request related to a problem? Please describe.
if the markdown contains custom header anchor ids, then the cross referencing links that are produced by mark don't respect the custom ids. in fact, the custom ids become visible in the html as part of the header.
markdown custom header ids are pretty common: https://www.markdownguide.org/extended-syntax/#heading-ids
when using mark, my header is for example:
the html for this fragment becomes:
see what it did there? it concatenated the custom id with the regular default header id.
but the references to that anchor are still
so perhaps this is a bug. at the end of the day, the anchor custom id shows up visible in the html and the links are broken.
Describe the solution you'd like
the custom anchor id should not be visible in the html, and the html anchor should exactly match the custom id if present.
Describe alternatives you've considered
given that my markdown is being exported from google docs, i don't have any options execept to manually remove the custom id specs.
Additional context
i think this is a bug not a feature request. cheers,
. k
The text was updated successfully, but these errors were encountered: