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
zeripath c9c0475f4d
In Render tolerate not being passed a context (#16842)
* In Render tolerate not being passed a context

It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix #16835

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add Context to Repo calls for RenderString

All calls from routers can easily add the context - so add it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
common Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
csv Add sanitizer rules per renderer (#16110) 3 years ago
external In Render tolerate not being passed a context (#16842) 3 years ago
markdown Fix table alignment in markdown (#16596) 3 years ago
mdstripper Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
orgmode Add sanitizer rules per renderer (#16110) 3 years ago
html.go Fix NPE in fuzzer (#16680) 3 years ago
html_internal_test.go Refactor renders (#15175) 3 years ago
html_test.go Fix NPE in fuzzer (#16680) 3 years ago
renderer.go cleanup code `issueFullPattern` in modules/markup (#16419) 3 years ago
renderer_test.go Refactor renders (#15175) 3 years ago
sanitizer.go Add sanitizer rules per renderer (#16110) 3 years ago
sanitizer_test.go Fix data URI scramble (#16098) 3 years ago