blob: 74fc0fbf16efb95a2408cbdfd083381d57182d58e649ac60cbd4a053dc3ff87e (
plain)
1
2
3
4
5
6
7
8
|
{{ define "main" }}
=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} Return to homepage
{{ $content := .RawContent }}
{{- $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 | safeHTML }}{{ end }}
|