Skip to content

Commit c55ff49

Browse files
committed
add feature entry, switch to neutral theme, remove border
1 parent 367a234 commit c55ff49

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/content/page/index.en-us.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Windows, on architectures like amd64, i386, ARM, PowerPC, and others.
128128
- Environment variables
129129
- Command line options
130130
- Multi-language support ([21 languages](https://github.com/go-gitea/gitea/tree/master/options/locale))
131+
- [Mermaid](https://mermaidjs.github.io/) Diagram support
131132
- Mail service
132133
- Notifications
133134
- Registration confirmation

web_src/js/markdown/mermaid.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ export async function renderMermaid(els) {
55

66
const {mermaidAPI} = await import(/* webpackChunkName: "mermaid" */'mermaid');
77

8-
mermaidAPI.initialize({startOnLoad: false});
8+
mermaidAPI.initialize({
9+
startOnLoad: false,
10+
theme: 'neutral',
11+
securityLevel: 'strict',
12+
});
913

1014
for (const el of els) {
1115
mermaidAPI.render(`mermaid-${random(12)}`, el.textContent, (svg) => {

web_src/less/_markdown.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,4 @@
502502
padding: 1rem;
503503
margin: 1rem 0;
504504
border-radius: .25rem;
505-
background: #fff;
506-
border: 1px solid #d4d4d5;
507505
}

0 commit comments

Comments
 (0)