Closed SamyPesse closed 9 years ago
Same as https://github.com/GitbookIO/kramed/blob/master/lib/lex/block.js#L298 pre
, script
and style
should not be escaped
Does this look good ? :
<p><strong>Proof:</strong> If <script type="math/tex; ">g</script> is concave, then <script type="math/tex; ">g(x)\\leq g(\\mu)+(x-\\mu)\'\\eta(\\mu),</script>
where <script type="math/tex; ">\\eta(\\mu)</script> is an arbitrary element of the
subgradient of ..</p>
For example:
is returned as:
(
'
is escaped in thescript
).<script type="math/tex; ">g(x)\leq g(\mu)+(x-\mu)\'\eta(\mu),</script>
tag is processed as 2tags
(https://github.com/GitbookIO/kramed/blob/master/lib/lex/inline.js#L108), and its content is escaped