forgejo/modules/markup
Gusted 82cb19649d
[GITEA] Fix media description render for orgmode
- Backport of #1224
- 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
2023-08-12 16:04:33 +02:00
..
asciicast
common
console
csv
external
markdown
mdstripper
orgmode [GITEA] Fix media description render for orgmode 2023-08-12 16:04:33 +02:00
camo.go
camo_test.go
html.go
html_internal_test.go
html_test.go
renderer.go
renderer_test.go
sanitizer.go Disallow dangerous URL schemes (#25960) (#25964) 2023-07-24 07:58:56 +02:00
sanitizer_test.go Disallow dangerous URL schemes (#25960) (#25964) 2023-07-24 07:58:56 +02:00