Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00
forgejo/modules/markup/markdown
Yarden Shoham cb83288530
Add attention blocks within quote blocks for Note and Warning (#21711)
For each quote block, the first `**Note**` or `**Warning**` gets an icon
prepended to it and its text is colored accordingly. GitHub does this
(community/community#16925). [Initially requested on
Discord.](https://discord.com/channels/322538954119184384/322538954119184384/1038816475638661181)

### Before

![image](https://user-images.githubusercontent.com/20454870/200408558-bd318302-6ff9-4d56-996f-9190e89013ec.png)

### After

![image](https://user-images.githubusercontent.com/20454870/200658863-1bac6461-dae7-4bf2-abd2-672d209574e4.png)

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: silverwind <me@silverwind.io>
2022-11-09 02:11:26 +02:00
..
math Fix slight bug in katex (#21171) 2022-10-05 19:55:36 +01:00
ast.go Add attention blocks within quote blocks for Note and Warning (#21711) 2022-11-09 02:11:26 +02:00
convertyaml.go Add KaTeX rendering to Markdown. (#20571) 2022-09-14 00:33:37 +08:00
goldmark.go Add attention blocks within quote blocks for Note and Warning (#21711) 2022-11-09 02:11:26 +02:00
markdown.go Upgrade chroma to v2.3.0 (#21259) 2022-09-26 13:50:03 +08:00
markdown_test.go Add link to user profile in markdown mention only if user exists (#21533) 2022-10-23 01:15:52 +08:00
meta.go Remove unnecessary debug log (#21536) 2022-10-22 15:25:34 +08:00
meta_test.go Fix slight bug in katex (#21171) 2022-10-05 19:55:36 +01:00
renderconfig.go Fix slight bug in katex (#21171) 2022-10-05 19:55:36 +01:00
renderconfig_test.go Fix slight bug in katex (#21171) 2022-10-05 19:55:36 +01:00
toc.go Make better use of i18n (#20096) 2022-06-26 22:19:22 +08:00