This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(html): enable (dangerous) HTML in Markdown and pass it through
This change enables HTML in Markdown. HTML in Markdown is passed through unchanged and can be potentially dangerous Fixes #154
- Loading branch information
Showing
5 changed files
with
68 additions
and
1 deletion.
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
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,31 @@ | ||
{ | ||
"type": "root", | ||
"children": [ | ||
{ | ||
"type": "heading", | ||
"depth": 1, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "Hello " | ||
}, | ||
{ | ||
"type": "html", | ||
"value": "<em>" | ||
}, | ||
{ | ||
"type": "text", | ||
"value": "World" | ||
}, | ||
{ | ||
"type": "html", | ||
"value": "</em>" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "html", | ||
"value": "<form action=\"/cgi-bin/contact\">\n <input type=\"text\"><label>Message</label>\n</form>" | ||
} | ||
] | ||
} |
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,5 @@ | ||
# Hello <em>World</em> | ||
|
||
<form action="/cgi-bin/contact"> | ||
<input type="text"><label>Message</label> | ||
</form> |
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