diff --git a/lib/formatters/latex.rb b/lib/formatters/latex.rb index 929a174f..d3233aff 100644 --- a/lib/formatters/latex.rb +++ b/lib/formatters/latex.rb @@ -10,7 +10,7 @@ def escape(text) end def escape_pre(text) - latex_esc(text) + text end def after_transform(text) diff --git a/test/code.yml b/test/code.yml index 85e9aefa..68f8314b 100644 --- a/test/code.yml +++ b/test/code.yml @@ -41,7 +41,7 @@ name: escaping of existing entities in blockcode in: "bc. Math fact: 3 < 5 & 5 > 3 but £5 > $5. " html: "
Math fact: 3 &lt; 5 &amp; 5 &gt; 3 but &pound;5 &#62; $5.
" -latex: "\\begin{verbatim}\n\\begin{verbatim}Math fact: 3 \\< 5 \\& 5 \\> 3 but \\£5 \\&\\#62; \\$5. \\\\\\end{verbatim}\\end{verbatim}\n" +latex: "\\begin{verbatim}\n\\begin{verbatim}Math fact: 3 < 5 & 5 > 3 but £5 > $5.\\end{verbatim}\\end{verbatim}\n" --- name: no formatting within pre in: |-