From 0026502d0ad641a4c7690e4ac7fda273b5b1953e Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Sun, 4 Apr 2021 14:21:11 +0200 Subject: [PATCH] I changed my mind. Do not remove markdown-specific emphasis in .gmi files. --- layouts/_default/single.gmi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index a0d6a25a..333b7bf7 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -1,9 +1,5 @@ # {{ .Title }}{{ $scratch := newScratch }} {{ $content := .RawContent -}} -{{ $content := $content | replaceRE "`(.+?)`" "$1" -}} -{{ $content := $content | replaceRE "`" "```" -}} -{{ $content := $content | replaceRE `\*\*(.+?)\*\*` "$1" -}} -{{ $content := $content | replaceRE `_(.+?)_` "$1" -}} {{ $content := $content | replaceRE `#### ` "### " -}} {{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}} {{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}