You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/markup
Lunny Xiao b01dce2a6e
Allow render HTML with css/js external links (#19017)
* Allow render HTML with css/js external links

* Fix bug because of filename escape chars

* Fix lint

* Update docs about new configuration item

* Fix bug of render HTML in sub directory

* Add CSP head for displaying iframe in rendering file

* Fix test

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

* Some improvements

* some improvement

* revert change in SanitizerDisabled of external renderer

* Add sandbox for iframe and support allow-scripts and allow-same-origin

* refactor

* fix

* fix lint

* fine tune

* use single option RENDER_CONTENT_MODE, use sandbox=allow-scripts

* fine tune CSP

* Apply suggestions from code review

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
common Update Goldmark to Goldmark 1.4.4 (#18420) 2 years ago
console Allow render HTML with css/js external links (#19017) 2 years ago
csv Allow render HTML with css/js external links (#19017) 2 years ago
external Allow render HTML with css/js external links (#19017) 2 years ago
markdown Allow render HTML with css/js external links (#19017) 2 years ago
mdstripper format with gofumpt (#18184) 2 years ago
orgmode Allow render HTML with css/js external links (#19017) 2 years ago
camo.go Provide configuration to allow camo-media proxying (#12802) 2 years ago
camo_test.go Provide configuration to allow camo-media proxying (#12802) 2 years ago
html.go Custom regexp external issues (#17624) 2 years ago
html_internal_test.go Custom regexp external issues (#17624) 2 years ago
html_test.go Allow render HTML with css/js external links (#19017) 2 years ago
renderer.go Allow render HTML with css/js external links (#19017) 2 years ago
renderer_test.go A better go code formatter, and now `make fmt` can run in Windows (#17684) 3 years ago
sanitizer.go format with gofumpt (#18184) 2 years ago
sanitizer_test.go format with gofumpt (#18184) 2 years ago