chaosarium
2023-01-09 eb2f6aeca891135389e58da0016c60af1363df61
Fix callout behaviour inconsistent with Obsidian (closes #168) (#268)

1 files modified
1 ■■■■ changed files
layouts/partials/textprocessing.html 1 ●●●● patch | view | raw | blame | history
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 class="\S+-callout">.*?)<br>(.*?<\/blockquote)` `${1}</p><p>${2}` }}
{{end}}
{{/* Make ==text== into <mark>text</mark> */}}