Skip to content

Commit 3ed136b

Browse files
committed
Render the ![IMPORTANT] messages similar to GitHub
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b262811 commit 3ed136b

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

assets/sass/style.scss

+8
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,11 @@ body.page {
362362
width: 65%;
363363
}
364364
}
365+
.markdown-important::before {
366+
content:url('img/important.svg');
367+
padding-left: 0.6em;
368+
padding-right: 0.2em;
369+
}
370+
.markdown-important {
371+
border-left: .25em solid #f34f29;
372+
}

layouts/_default/single.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ define "main" }}
2-
{{ .Content }}
2+
{{ replace .Content "<p>[!IMPORTANT]" "<p class=\"markdown-important\">" | safeHTML }}
33
{{ end }}

static/img/important.svg

+16
Loading

0 commit comments

Comments
 (0)