1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-04 21:15:24 +02:00

Fingerprint during Ember build

This commit is contained in:
HarveyKandola 2021-09-07 20:18:30 -04:00
parent e19c4ad18a
commit eea8db9288
6 changed files with 47 additions and 36 deletions

View file

@ -54,5 +54,6 @@ func (*Provider) Refresh(ctx *provider.Context, config, data string) string {
}
func embed(config, data string) string {
// return bluemonday.UGCPolicy().Sanitize(data)
return data
}

View file

@ -47,6 +47,7 @@ func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.R
}
// Render converts markdown data into HTML suitable for browser rendering.
// See also https://github.com/yuin/goldmark
func (*Provider) Render(ctx *provider.Context, config, data string) string {
unsafe := blackfriday.Run([]byte(data))