Fix callout behaviour inconsistent with Obsidian (closes #168) (#268)

This commit is contained in:
chaosarium 2023-01-09 17:14:11 -05:00 committed by GitHub
parent 6de66f98c9
commit 361b884181

View File

@ -127,6 +127,7 @@
{{end}}
{{ $content = $content | replaceRE `\[![a-zA-Z]+\][-\+]?` "" }}
{{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }}
{{ $content = $content | replaceRE `(?s)(<blockquote class="\S+-callout">.*?)<br>(.*?<\/blockquote)` `${1}</p><p>${2}` }}
{{end}}
{{/* Make ==text== into <mark>text</mark> */}}