We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c186818 commit dbfec28Copy full SHA for dbfec28
src/render_latex.mjs
@@ -45,7 +45,6 @@ function escape(str) {
45
return escapeChar(match)
46
})
47
}
48
-function miniEscape(str) { return str.replace(/[`]/g, escapeChar) }
49
50
function escapeIndexChar(ch) {
51
switch (ch) {
@@ -145,8 +144,10 @@ let renderer = {
145
144
code_inline(token) {
146
if (noStarch)
147
return `\\texttt{${escape(token.content)}}`
+ else if (token.content.indexOf("`"))
148
+ return `\\lstinline|${token.content}|`
149
else
- return `\\lstinline\`${miniEscape(token.content)}\``
150
+ return `\\lstinline\`${token.content}\``
151
},
152
153
strong_open() { return "\\textbf{" },
0 commit comments