aboutsummaryrefslogtreecommitdiff
path: root/test/command/3422.md
AgeCommit message (Collapse)AuthorFilesLines
2017-04-29LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane1-1/+1
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.
2017-02-05Handle language in inline code with --listings.John MacFarlane1-0/+9
Closes #3422.