diff options
author | Karl Berry <karl@freefriends.org> | 2018-04-01 22:24:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-04-01 22:24:04 +0000 |
commit | ac8d62d1767ddaee38fb7d8d0afc5ae70233f806 (patch) | |
tree | d75db9d11068090dd417fe1c20240176cac31ab2 /Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty | |
parent | fe9ffbe7cd9288728c5aa469cdb3ee173f90c69d (diff) |
lwarp (2apr18)
git-svn-id: svn://tug.org/texlive/trunk@47225 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty index 16017fe39ef..6312ab8d43a 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty @@ -31,7 +31,7 @@ \LWR@subsingledollar*{% lwarp \textbackslash{}ch\{\LWR@HTMLsanitize{#2}\}% alt text }{% - \LWR@HTMLsanitize{#1}% add'l hashing + \protect\LWR@HTMLsanitize{\detokenize\expandafter{#1}}% add'l hashing }% {% \chemformula_ch:nn {#1} {#2}% original @@ -46,7 +46,7 @@ \LWR@subsingledollar*{% lwarp \textbackslash{}chcpd\{\LWR@HTMLsanitize{#2}\}% }{% - \LWR@HTMLsanitize{#1}% + \protect\LWR@HTMLsanitize{\detokenize\expandafter{#1}}% }{% original \group_begin: \tl_if_blank:nF {#2} @@ -86,7 +86,10 @@ { \begingroup% \boolfalse{mathjax}% - \LWR@subsingledollar*{\textbackslash{}chlewis\{#2\}\{#3\}}{#1}{ + \LWR@subsingledollar*{\textbackslash{}chlewis\{#2\}\{#3\}}% + { + \protect\LWR@HTMLsanitize{\detokenize\expandafter{#1}}% + }{ \chemformula_lewis:nnn {#1} {#2} {#3} } \endgroup% |