You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 8b8aab83113b34bade61964e2097ed497abc39e9)

Co-authored-by: Gusted <postmaster@gusted.xyz>
10 months ago
..
asciicast Support asciicast files as new markup (#22448) 1 year ago
common Make `user-content-* ` consistent with github (#26388) 11 months ago
console Add context when rendering labels or emojis (#23281) 1 year ago
csv Add context when rendering labels or emojis (#23281) 1 year ago
external Log STDERR of external renderer when it fails (#22442) 1 year ago
markdown Replace `interface{}` with `any` (#25686) 1 year ago
mdstripper Implement FSFE REUSE for golang files (#21840) 2 years ago
orgmode fix media description render for orgmode (#26895) 10 months ago
camo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
camo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
html.go Do not highlight `#number` in documents (#26365) 11 months ago
html_internal_test.go Do not highlight `#number` in documents (#26365) 11 months ago
html_test.go Do not highlight `#number` in documents (#26365) 11 months ago
renderer.go Add RTL rendering support to Markdown (#24816) 1 year ago
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` (#22877) 1 year ago
sanitizer.go Render plaintext task list items for markdown files (#26186) 11 months ago
sanitizer_test.go Render plaintext task list items for markdown files (#26186) 11 months ago