Skip to content

Commit

Permalink
Closes #439 (#445)
Browse files Browse the repository at this point in the history
* closes #439

* patch release
  • Loading branch information
tlienart authored Apr 5, 2020
1 parent 5679853 commit 28b17c0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Franklin"
uuid = "713c75ef-9fc9-4b05-94a9-213340da978e"
authors = ["Thibaut Lienart <[email protected]>"]
version = "0.6.16"
version = "0.6.17"

This comment has been minimized.

Copy link
@tlienart

tlienart Apr 5, 2020

Author Owner

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 1 addition & 1 deletion src/converter/markdown/md.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function convert_md_math(ms::AS, lxdefs::Vector{LxDef}=Vector{LxDef}(),
next_lxc = from_ifsmaller(lxcoms, lxc_idx, len_lxc)
end
# add anything after the last command
(head strlen) && write(htmls, chop(ms, head=prevind(ms, head), tail=0))
(head <= strlen) && write(htmls, subs(ms, head, strlen))
return String(take!(htmls))
end

Expand Down
9 changes: 9 additions & 0 deletions test/parser/markdown-extra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,12 @@ end
""" |> fd2html_td
@test isapproxstr(s, "<p>A –-* ***_</p>") # note double -- is transformed -
end

# issue 439 and consequences
@testset "mathunicode" begin
s = raw"""
\newcommand{\u}{1}
$$ φφφ\u abcdef $$
""" |> fd2html_td
@test isapproxstr(s, raw"\[ φφφ1 abcdef \]")
end

1 comment on commit 28b17c0

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/12309

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.17 -m "<description of version>" 28b17c08d03cd215aca158b82fd4fb4fd013cd2f
git push origin v0.6.17

Please sign in to comment.