107 lines
949 B
Text
107 lines
949 B
Text
|
These should all get escaped:
|
||
|
|
||
|
Backslash: \\
|
||
|
|
||
|
Backtick: \`
|
||
|
|
||
|
Asterisk: \*
|
||
|
|
||
|
Underscore: \_
|
||
|
|
||
|
Left brace: \{
|
||
|
|
||
|
Right brace: \}
|
||
|
|
||
|
Left bracket: \[
|
||
|
|
||
|
Right bracket: \]
|
||
|
|
||
|
Left paren: \(
|
||
|
|
||
|
Right paren: \)
|
||
|
|
||
|
Greater-than: \>
|
||
|
|
||
|
Hash: \#
|
||
|
|
||
|
Period: \.
|
||
|
|
||
|
Bang: \!
|
||
|
|
||
|
Plus: \+
|
||
|
|
||
|
Minus: \-
|
||
|
|
||
|
So, these are TeX's special chars:
|
||
|
> \\ { } $ & # ^ _ % ~
|
||
|
|
||
|
|
||
|
These should not, because they occur within a code block:
|
||
|
|
||
|
Backslash: \\
|
||
|
|
||
|
Backtick: \`
|
||
|
|
||
|
Asterisk: \*
|
||
|
|
||
|
Underscore: \_
|
||
|
|
||
|
Left brace: \{
|
||
|
|
||
|
Right brace: \}
|
||
|
|
||
|
Left bracket: \[
|
||
|
|
||
|
Right bracket: \]
|
||
|
|
||
|
Left paren: \(
|
||
|
|
||
|
Right paren: \)
|
||
|
|
||
|
Greater-than: \>
|
||
|
|
||
|
Hash: \#
|
||
|
|
||
|
Period: \.
|
||
|
|
||
|
Bang: \!
|
||
|
|
||
|
Plus: \+
|
||
|
|
||
|
Minus: \-
|
||
|
|
||
|
|
||
|
Nor should these, which occur in code spans:
|
||
|
|
||
|
Backslash: `\\`
|
||
|
|
||
|
Backtick: `` \` ``
|
||
|
|
||
|
Asterisk: `\*`
|
||
|
|
||
|
Underscore: `\_`
|
||
|
|
||
|
Left brace: `\{`
|
||
|
|
||
|
Right brace: `\}`
|
||
|
|
||
|
Left bracket: `\[`
|
||
|
|
||
|
Right bracket: `\]`
|
||
|
|
||
|
Left paren: `\(`
|
||
|
|
||
|
Right paren: `\)`
|
||
|
|
||
|
Greater-than: `\>`
|
||
|
|
||
|
Hash: `\#`
|
||
|
|
||
|
Period: `\.`
|
||
|
|
||
|
Bang: `\!`
|
||
|
|
||
|
Plus: `\+`
|
||
|
|
||
|
Minus: `\-`
|