1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00
forgejo/modules/markup/orgmode
Gusted acce9f9b70
[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)
(cherry picked from commit d6dcc34492)
(cherry picked from commit 8b8aab8311)
(cherry picked from commit b9e0297bc8)
2023-09-11 18:09:23 +02:00
..
orgmode.go [GITEA] Fix media description render for orgmode 2023-09-11 18:09:23 +02:00
orgmode_test.go [GITEA] Fix media description render for orgmode 2023-09-11 18:09:23 +02:00