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

hugo
chaosarium 2 years ago committed by GitHub
parent b78008532f
commit eb2f6aeca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save