Skip to content

Commit 3ed136b

Browse files
committed
Render the ![IMPORTANT] messages similar to GitHub
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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

Lines changed: 8 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 16 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)