gitea/modules/markup
Giteabot dcf1717793
Add context when rendering labels or emojis () ()
Backport 

This branch continues the work of  and attempts to rid the
codebase of any `nil` contexts when using a `RenderContext`.

Anything that renders markdown or does post processing may call
`markup.sha1CurrentPatternProcessor()`, and this runs
`git.OpenRepository()`, which needs a context. It will panic if the
context is `nil`. This branch attempts to _always_ include a context
when creating a `RenderContext` to prevent future crashes.

Co-authored-by: Jonathan Tran <jon@allspice.io>
..
asciicast Support asciicast files as new markup ()
common Implement FSFE REUSE for golang files ()
console Add context when rendering labels or emojis () ()
csv Add context when rendering labels or emojis () ()
external Log STDERR of external renderer when it fails ()
markdown Add context when rendering labels or emojis () ()
mdstripper Implement FSFE REUSE for golang files ()
orgmode Add context when rendering labels or emojis () ()
camo.go Implement FSFE REUSE for golang files ()
camo_test.go Implement FSFE REUSE for golang files ()
html.go Add context when rendering labels or emojis () ()
html_internal_test.go Add context when rendering labels or emojis () ()
html_test.go Add context when rendering labels or emojis () ()
renderer.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` ()
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` ()
sanitizer.go Allow `<video>` in MarkDown () ()
sanitizer_test.go Implement FSFE REUSE for golang files ()