repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
d7ea519
parent
d4c8614
author
Eric Bower
date
2022-11-09 02:11:41 +0000 UTC
feat(prose): permit rel attribute on hyperlinks.

Closes https://todo.sr.ht/~erock/pico.sh/51
1 files changed,  +1, -0
M shared/mdparser.go
+1, -0
1@@ -45,6 +45,7 @@ type ParsedText struct {
2 func HtmlPolicy() *bluemonday.Policy {
3 	policy := bluemonday.UGCPolicy()
4 	policy.AllowStyling()
5+	policy.AllowAttrs("rel").OnElements("a")
6 	return policy
7 }
8