-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #326, avoid double escaping when pre-rendering a html code bl…
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "JuDoc" | ||
uuid = "4ca9428c-4c75-11e9-2efb-bf5cb6c1e8f8" | ||
authors = ["Thibaut Lienart <[email protected]>"] | ||
version = "0.4" | ||
version = "0.4.1" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
[deps] | ||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# See https://github.com/tlienart/JuDoc.jl/issues/326 | ||
|
||
@testset "Issue 326" begin | ||
h1 = "<div class=\"hello\">Blah</div>" | ||
h1e = Markdown.htmlesc(h1) | ||
@test J.is_html_escaped(h1e) | ||
@test J.html_unescape(h1e) == h1 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 0daa5d5
There was a problem hiding this comment.
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/7237
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 Julia TagBot is installed, or can be done manually through the github interface, or via:
git tag -a v0.4.1 -m "<description of version>" 0daa5d5f85f057bb3efa9fe404bd4beab91601bd
git push origin v0.4.1
@JuliaRegistrator register