forked from cory/tildefriends
		
	security: Use commonmarkjs with {safe: true} as intended.
This commit is contained in:
		| @@ -21,7 +21,7 @@ function* treeify(prefix, o) { | ||||
|  | ||||
| function markdown(md) { | ||||
| 	let parsed = new commonmark.Parser().parse(md ?? '*undocumented*'); | ||||
| 	return new commonmark.HtmlRenderer().render(parsed); | ||||
| 	return new commonmark.HtmlRenderer({safe: true}).render(parsed); | ||||
| } | ||||
|  | ||||
| function document(api) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user