Skip to content

Commit

Permalink
use \textasciitilde for LaTeX tilde (JuliaLang#30897)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne authored and fredrikekre committed Jan 30, 2019
1 parent c0e9182 commit 62c411d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stdlib/Markdown/src/render/latex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ function latexinline(io::IO, md::Link)
end

const _latexescape_chars = Dict{Char, AbstractString}(
'~'=>"{\\sim}", '^'=>"\\^{}", '\\'=>"{\\textbackslash}")
'~'=>"{\\textasciitilde}",
'^'=>"\\^{}",
'\\'=>"{\\textbackslash}")
for ch in "&%\$#_{}"
_latexescape_chars[ch] = "\\$ch"
end
Expand Down

0 comments on commit 62c411d

Please sign in to comment.