forgejo/modules/markup
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 8b8aab8311)

Co-authored-by: Gusted <postmaster@gusted.xyz>
2023-09-13 05:44:59 +00:00
..
asciicast
common Make user-content-* consistent with github (#26388) 2023-08-09 09:30:31 +00:00
console
csv
external
markdown Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
mdstripper
orgmode fix media description render for orgmode (#26895) 2023-09-13 05:44:59 +00:00
camo.go
camo_test.go
html.go Do not highlight #number in documents (#26365) 2023-08-07 15:11:25 +02:00
html_internal_test.go Do not highlight #number in documents (#26365) 2023-08-07 15:11:25 +02:00
html_test.go Do not highlight #number in documents (#26365) 2023-08-07 15:11:25 +02:00
renderer.go Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
renderer_test.go
sanitizer.go Render plaintext task list items for markdown files (#26186) 2023-07-27 14:15:31 +00:00
sanitizer_test.go Render plaintext task list items for markdown files (#26186) 2023-07-27 14:15:31 +00:00