gitea/modules/markup/markdown
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>
2022-06-16 11:33:23 +08:00
..
ast.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
goldmark.go Automatically render wiki TOC (#19873) 2022-06-08 16:59:16 +08:00
markdown.go Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
markdown_test.go Bump goldmark to v1.4.11 (#19201) 2022-03-24 11:47:37 -04:00
meta.go Fix markdown meta parsing (#12817) 2020-09-12 21:48:47 -04:00
meta_test.go Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
renderconfig.go Use markdown frontmatter to provide Table of contents, language and frontmatter rendering (#11047) 2020-04-24 14:22:36 +01:00
toc.go Automatically render wiki TOC (#19873) 2022-06-08 16:59:16 +08:00