diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-09-03 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-09-03 00:00:00 +0000 |
commit | e01f5c393adc7f72cf6e9bf20d2382e2ea098d8d19e3d607635138b98d74fca9 (patch) | |
tree | 3d3958c25f0052281ae65962a846dd3e00b74ccd417b9fba85aab69f5d16ab9a /layouts/_default/single.gmi | |
parent | 3a64487f66967b861b431d93fc381e9f82fd1a2a7f198cd17e3d42a5f7aeed74 (diff) | |
download | hugo-theme-journal-e01f5c393adc7f72cf6e9bf20d2382e2ea098d8d19e3d607635138b98d74fca9.tar.gz hugo-theme-journal-e01f5c393adc7f72cf6e9bf20d2382e2ea098d8d19e3d607635138b98d74fca9.zip |
Remove redundant regex
Diffstat (limited to 'layouts/_default/single.gmi')
-rw-r--r-- | layouts/_default/single.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 39a6cb5..93501e0 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -6,5 +6,5 @@ {{- $content = $content | replaceRE `\n####{0,3}` "\n###" }} {{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` "\n=> $2 $1" }} {{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }} -{{- $content = $content | replaceRE `\n- (.+?)` "\n* $1" }} +{{- $content = $content | replaceRE `\n- ` "\n* " }} {{- $content | safeHTML }}{{ end }} |