fix incorrect folder name for julia-0.6.x

Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
This commit is contained in:
2018-06-11 03:28:36 -07:00
parent 5e0e436e4e
commit 0e4acfb8f2
722 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license
mutable struct LaTeX
formula::String
end
@trigger '$' ->
function tex(stream::IO, md::MD)
result = parse_inline_wrapper(stream, "\$", rep = true)
return result === nothing ? nothing : LaTeX(result)
end
function blocktex(stream::IO, md::MD)
withstream(stream) do
ex = tex(stream, md)
if ex nothing
return false
else
push!(md, ex)
return true
end
end
end
show(io::IO, tex::LaTeX) =
print(io, '$', tex.formula, '$')
latex(io::IO, tex::LaTeX) =
println(io, "\$\$", tex.formula, "\$\$")
latexinline(io::IO, tex::LaTeX) =
print(io, '$', tex.formula, '$')
term(io::IO, tex::LaTeX, cols) = println_with_format(:magenta, io, tex.formula)
terminline(io::IO, tex::LaTeX) = print_with_format(:magenta, io, tex.formula)