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

LaTeX writer: Update \lstinline delimiters. #4369

Merged
merged 1 commit into from
Apr 26, 2018

Conversation

timparenti
Copy link
Contributor

Don't delimit \lstinline with characters that are normally escaped in LaTeX, specifically those which Pandoc already needs to escape, like & and _:

let str' = escapeStringUsing (backslashEscapes "\\{}%~_&") str

This avoids "undefined control sequence" issues with the \passthrough command encountered in laboon/ebook#139, and follows up on #4111 and #4271.

Don't delimit \lstinline with characters that are normally escaped.

Follow-up to jgm#4111, jgm#4271.
@jgm
Copy link
Owner

jgm commented Apr 26, 2018

Thanks!

@timparenti timparenti deleted the latex-writer-lstinline-delimiter branch May 21, 2018 15:48
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 this pull request may close these issues.

2 participants