mirror of https://github.com/go-gitea/gitea.git
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.
a09b40de8d
* Prevent double sanitize. * Use SanitizeReaderToWriter. At the moment `actualRender` uses `SanitizeReader` to sanitize the output. But `SanitizeReader` gets called in `markup.render` too so the output gets sanitized twice. I moved the `SanitizeReader` call into `RenderRaw` because this method does not use `markup.render`. I would like to remove the `RenderRaw`/`RenderRawString` methods too because they are only called from tests, the fuzzer and the `/markup/raw` api endpoint. This endpoint is not in use so I think we could remove them. If we really in the future need a method to render markdown without PostProcessing we could achieve this with a more flexible `renderer.NeedPostProcess` method. |
3 years ago | |
---|---|---|
.. | ||
ast.go | 4 years ago | |
goldmark.go | 3 years ago | |
markdown.go | 3 years ago | |
markdown_test.go | 3 years ago | |
meta.go | 4 years ago | |
meta_test.go | 4 years ago | |
renderconfig.go | 5 years ago | |
toc.go | 5 years ago |