max-heller / mdbook-pandoc

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

<kbd> elements render on its own line in .epub files #110

Closed chrisr87 closed 11 hours ago

chrisr87 commented 3 weeks ago

I may be missing an option that I'm supposed to pass here to get <kbd> elements to correctly render inline. Thoughts?

# book.toml
[book]
title = "The Rust Programming Language"
authors = ["Steve Klabnik", "Carol Nichols", "Contributions from the Rust Community"]

[rust]
edition = "2021"

[output.pandoc]
hosted-html = "https://doc.rust-lang.org/book"

[output.pandoc.profile.epub]
output-file = "rust-book.epub"
table-of-contents = false

[output.pandoc.profile.epub.variables]
epub-cover-image = "cover.png"
epub-title-page = false
max-heller commented 4 days ago

This seems to be the result of a preprocessing pass that inserts divs to make sure Pandoc generates valid EPUB. It shouldn't be touching inline HTML like this, so I'll look into a fix

max-heller commented 11 hours ago

112 should fix this issue, thanks for reporting! I'll publish a new release shortly