forgejo/modules/markup/orgmode
Gusted d6dcc34492
[GITEA] 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 ef2456e1b1)
(cherry picked from commit b6559b4825)
2023-08-22 13:57:02 +02:00
..
orgmode.go [GITEA] Fix media description render for orgmode 2023-08-22 13:57:02 +02:00
orgmode_test.go [GITEA] Fix media description render for orgmode 2023-08-22 13:57:02 +02:00