max-heller / mdbook-pandoc

A mdbook backend powered by Pandoc.
Apache License 2.0
97 stars 7 forks source link

Heading surrounded by `<details>`/`</details>` HTML blocks produces invalid EPUB #102

Closed max-heller closed 2 months ago

max-heller commented 2 months ago

See https://github.com/jgm/pandoc/issues/9601. This is particularly relevant for Comprehensive Rust

One possible workaround would be to parse HTML blocks and generate Pandoc Divs inside each pair of matching tags (see https://github.com/jgm/pandoc/issues/9601#issuecomment-2016562324)