forked from gitea/gitea
1
0
Fork 0
gitea/modules/markup/orgmode
Earl Warren 79afd280e1
fix media description render for orgmode (#26895)
- 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>
2023-09-13 05:44:59 +00:00
..
orgmode.go fix media description render for orgmode (#26895) 2023-09-13 05:44:59 +00:00
orgmode_test.go fix media description render for orgmode (#26895) 2023-09-13 05:44:59 +00:00