mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 21:17:14 -04:00
[FEAT] Adds x-mode-only anchor styles to display images based if the theme is light or dark mode. (#3985)
Adds a feature similar to this https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/ , by adding styles to elements which `src` or `href` attribute ends with `#light-mode-only` or `#dark-mode-only`. To improve compability, the github variants with the `gh-` prefix are also contained. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3985 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Mai-Lapyst <mai-lapyst@noreply.codeberg.org> Co-committed-by: Mai-Lapyst <mai-lapyst@noreply.codeberg.org>
This commit is contained in:
parent
96f661e821
commit
0a7767eaaa
12 changed files with 51 additions and 4 deletions
|
@ -83,3 +83,12 @@
|
|||
issue_id: 2 # in repo_id 1
|
||||
review_id: 20
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 10
|
||||
type: 0
|
||||
poster_id: 1
|
||||
issue_id: 1 # in repo_id 1
|
||||
content: "test markup light/dark-mode-only "
|
||||
created_unix: 946684813
|
||||
updated_unix: 946684813
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
priority: 0
|
||||
is_closed: false
|
||||
is_pull: false
|
||||
num_comments: 2
|
||||
num_comments: 3
|
||||
created_unix: 946684800
|
||||
updated_unix: 978307200
|
||||
is_locked: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue