|
|
@ -5,7 +5,11 @@
|
|
|
|
{{ $content = replace $content "->" "→" }}
|
|
|
|
{{ $content = replace $content "->" "→" }}
|
|
|
|
|
|
|
|
|
|
|
|
{{/* Escape slashes for Latex to fix line breaks */}}
|
|
|
|
{{/* Escape slashes for Latex to fix line breaks */}}
|
|
|
|
{{ $content = replaceRE "\\\\ *\n" "\\\\" $content }}
|
|
|
|
{{$latex := findRE "\\$\\$([^\\$]+)\\$\\$" $content}}
|
|
|
|
|
|
|
|
{{range $latex}}
|
|
|
|
|
|
|
|
{{$fixed := replaceRE "\\\\(?: +|\\n)" "\\\\" .}}
|
|
|
|
|
|
|
|
{{$content = replace $content . $fixed}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
|
|
|
|
{{/* Wikilinks */}}
|
|
|
|
{{/* Wikilinks */}}
|
|
|
|
{{$wikilinks := $content | findRE "\\[\\[[^\\[\\]\\|]*(?:\\|[^\\[\\]]*)?\\]\\]" }}
|
|
|
|
{{$wikilinks := $content | findRE "\\[\\[[^\\[\\]\\|]*(?:\\|[^\\[\\]]*)?\\]\\]" }}
|
|
|
|