max-heller / mdbook-pandoc

A mdbook backend powered by Pandoc.
Apache License 2.0
107 stars 9 forks source link

Linking to tags by `id` attributes #39

Open max-heller opened 10 months ago

max-heller commented 10 months ago
<a id="test">some text here</a>
[test link](test)

is converted to

some text here\href{test}{test link}

but there should be a link target defined with the tag's id ("test").

Pandoc deliberately does not try to parse raw HTML, so this needs either a full-fledged HTML parsing solution (#44) or a hacky, best-effort solution