gitea/modules/markup
Earl Warren 79afd280e1
fix media description render for orgmode ()
- In org mode you can specify an description for media via the following
syntax `[[description][media link]]`. The description is then used as
title or alt.
- This patch fixes the rendering of the description by seperating the
description and non-description cases and using `org.String()`.
- Added unit tests.
- Inspired by
6eb20dbda9/org/html_writer.go (L406-L427)
- Resolves https://codeberg.org/Codeberg/Community/issues/848

(cherry picked from commit 8b8aab83113b34bade61964e2097ed497abc39e9)

Co-authored-by: Gusted <postmaster@gusted.xyz>
..
asciicast Support asciicast files as new markup ()
common Make `user-content-* ` consistent with github ()
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 Replace `interface{}` with `any` ()
mdstripper Implement FSFE REUSE for golang files ()
orgmode fix media description render for orgmode ()
camo.go Implement FSFE REUSE for golang files ()
camo_test.go Implement FSFE REUSE for golang files ()
html.go Do not highlight `#number` in documents ()
html_internal_test.go Do not highlight `#number` in documents ()
html_test.go Do not highlight `#number` in documents ()
renderer.go Add RTL rendering support to Markdown ()
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` ()
sanitizer.go Render plaintext task list items for markdown files ()
sanitizer_test.go Render plaintext task list items for markdown files ()