Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chrisr87 opened this issue Aug 19, 2024 · 3 comments · Fixed by #112
Closed

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

chrisr87 opened this issue Aug 19, 2024 · 3 comments · Fixed by #112

Comments

@chrisr87
Copy link

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
Copy link
Owner

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
Copy link
Owner

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

max-heller added a commit that referenced this issue Sep 14, 2024
@max-heller
Copy link
Owner

I released 0.7.2 which should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants