mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
Upgrade the markdown parser vendor. Prev Commit: Update to v8.4.4, new mvc features. Read HISTORY.md.
Former-commit-id: 194b8fb1ba68a046e0e89a42a3e79b2cd319f14b
This commit is contained in:
@@ -2053,7 +2053,7 @@ func (ctx *context) XML(v interface{}, opts ...XML) (int, error) {
|
||||
|
||||
// WriteMarkdown parses the markdown to html and renders these contents to the writer.
|
||||
func WriteMarkdown(writer io.Writer, markdownB []byte, options Markdown) (int, error) {
|
||||
buf := blackfriday.MarkdownCommon(markdownB)
|
||||
buf := blackfriday.Run(markdownB)
|
||||
if options.Sanitize {
|
||||
buf = bluemonday.UGCPolicy().SanitizeBytes(buf)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user