-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Line breaks inside <code>...</code> elements with HTML autowrap enabled #7858
Comments
You're only talking about inline code elements, right? There is no But you could apply some CSS like: p code {
white-space: nowrap;
} |
Thanks for the answer, mb21! I applied the CSS you suggested and it worked! (it seems the problem is somehow caused by the CSS framework I´m using: minicss). |
As it turns out, we have
in the default template. So you're right, we need to add some code to ensure that line breaks aren't inserted in HTML code during wrapping. |
relevant commits
So it seems that this goes back to 2013, prompted by: |
Demo:
|
In pandoc 2.17.0.1, it seems autowrap is turned on by default for html output.
However, this generates undesirable line breaks when the wrapping occurs inside a
<code>
section used in the middle of a paragraph.Therefore, I'm wondering if it might be possible to avoid automatic line breaks being inserted between
<code>
tags.(context: I faced this problem in a markdown document, where in a paragraph I mention:
cd directory-name
. And now pandoc is inserting a line breaking aftercd
).Thanks!
The text was updated successfully, but these errors were encountered: