0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 22:44:40 +01:00
gitea/modules/markup
silverwind 32d9c47ec7
Add RTL rendering support to Markdown (#24816)
Support RTL content in Markdown:


![image](https://github.com/go-gitea/gitea/assets/115237/dedb1b0c-2f05-40dc-931a-0d9dc81f7c97)

Example document:
https://try.gitea.io/silverwind/symlink-test/src/branch/master/bidi-text.md
Same on GitHub:
https://github.com/silverwind/symlink-test/blob/master/bidi-text.md

`dir=auto` enables a browser heuristic that sets the text direction
automatically. It is the only way to get automatic text direction.

Ref: https://codeberg.org/Codeberg/Community/issues/1021

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-05-20 23:02:52 +02:00
..
asciicast
common
console
csv
external
markdown Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
mdstripper
orgmode
camo.go
camo_test.go
html.go Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
html_internal_test.go
html_test.go
renderer.go Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
renderer_test.go
sanitizer.go Allow all URL schemes in Markdown links by default (#24805) 2023-05-19 17:17:07 +02:00
sanitizer_test.go Allow all URL schemes in Markdown links by default (#24805) 2023-05-19 17:17:07 +02:00