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 df0b6e69bf
commit 0e81b9707e

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> */}}