diff --git a/docs/usage/repository/markdown.md b/docs/usage/repository/markdown.md index b3db34d7..89cd05c0 100644 --- a/docs/usage/repository/markdown.md +++ b/docs/usage/repository/markdown.md @@ -76,6 +76,33 @@ It will be rendered with issue titles to: * the other issue title (#456) ``` +## Theme-based image display + +Gitea supports the GitHub-like theme-based image display. Supported syntax: + +* Use Markdown image + +``` +![My-Light](my-light.png#gh-light-mode-only)![My-Dark](my-dark.png#gh-dark-mode-only) +``` + +* Use `` HTML tag + +``` + + +``` + +* Use `` with `` (only works for themes with "auto" color preference) + +``` + + + + + +``` + ## Math expressions Gitea supports GitHub-like math expression formatting.