aboutsummaryrefslogtreecommitdiff
path: root/test/command/1629.md
AgeCommit message (Collapse)AuthorFilesLines
2017-04-29LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane1-0/+10
Previously the LaTeX writer created invalid LaTeX when `--listings` was specified and a code span occured inside emphasis or another construction. This is because the characters `%{}\` must be escaped in lstinline when the listinline occurs in another command, otherwise they must not be escaped. To deal with this, adoping Michael Kofler's suggestion, we always wrap lstinline in a dummy command `\passthrough`, now defined in the default template if `--listings` is specified. This way we can consistently escape the special characters. Closes #1629.