Prevent linebreak between inline code and punctuation #10773
Replies: 2 comments
-
Can you give an example allowing this to be reproduced? |
Beta Was this translation helpful? Give feedback.
-
Ah, I seem to have found the problem (though not yet the solution). You can reproduce the issue by running I was using a custom latex \let\inlinecode\texttt
\renewcommand{\texttt}[1]{
\colorbox{gray!10}{\color{inline_color}\inlinecode{#1}}
} This effectively replaces If you instead run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using pandoc to convert from Markdown to PDF. I often use the inline code environment with single back-ticks, like
this
. In the PDF output, it's possible that the period followingthis
ends up on a newline (with similar behavior for commas, parentheses, or other punctuation occurring immediately after the inline text). Is there a way to prevent this?Beta Was this translation helpful? Give feedback.
All reactions