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 b78008532f
commit eb2f6aeca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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