From 0e81b9707e10867f321378f7eabd2cd1a4fc7674 Mon Sep 17 00:00:00 2001 From: chaosarium <38693485+chaosarium@users.noreply.github.com> Date: Mon, 9 Jan 2023 17:14:11 -0500 Subject: [PATCH] Fix callout behaviour inconsistent with Obsidian (closes #168) (#268) --- layouts/partials/textprocessing.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html index dbcc0535..09e23181 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 */}}