From 9c60c8a2910bdc483c94e31b13a54d8a468aed6b Mon Sep 17 00:00:00 2001 From: chaosarium <38693485+chaosarium@users.noreply.github.com> Date: Wed, 4 Jan 2023 19:15:54 -0500 Subject: [PATCH] Fix callout behaviour inconsistent with Obsidian --- layouts/partials/textprocessing.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html index dbcc0535f..09e231812 100644 --- a/layouts/partials/textprocessing.html +++ b/layouts/partials/textprocessing.html @@ -127,6 +127,7 @@ {{end}} {{ $content = $content | replaceRE `\[![a-zA-Z]+\][-\+]?` "" }} {{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }} + {{ $content = $content | replaceRE `(?s)(
.*?)
(.*?<\/blockquote)` `${1}${2}` }} {{end}} {{/* Make ==text== into text */}}