0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-02 11:55:46 +01:00
gitea/modules/markup/markdown
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
..
math
ast.go
convertyaml.go
goldmark.go Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
markdown_test.go
markdown.go
meta_test.go
meta.go
renderconfig_test.go
renderconfig.go
toc.go