File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 11# {{ .Title }}
22{{ $content := .RawContent }}
3+
4+ {{/* Fix relrefs * /}}
35{{ $content := $content | replaceRE "\\ {\\ {< ?relref \" ([ ^ \" ] +)\" ?>\\ }\\ }" "https://redis.io/docs/latest$1 " }}
6+
7+ {{/* Fix images * /}}
8+ {{ $content := $content | replaceRE "\\ {\\ {< ?image filename=\" ([ ^ \" ] +)\" ?>\\ }\\ }" "![ $1] ( https://redis.io/docs/latest$1 ) " }}
9+
10+ {{/* Remove all shortcodes * /}}
11+ {{ $content := $content | replaceRE "\\ {\\ {% ?/?.* %\\ }\\ }" "" }}
12+ {{ $content := $content | replaceRE "\\ {\\ {< ?/?.* >\\ }\\ }" "" }}
13+
414{{ $content }}
Original file line number Diff line number Diff line change 11# {{ .Title }}
22{{ $content := .RawContent }}
3+
4+ {{/* Fix relrefs * /}}
35{{ $content := $content | replaceRE "\\ {\\ {< ?relref \" ([ ^ \" ] +)\" ?>\\ }\\ }" "https://redis.io/docs/latest$1 " }}
6+
7+ {{/* Fix images * /}}
8+ {{ $content := $content | replaceRE "\\ {\\ {< ?image filename=\" ([ ^ \" ] +)\" ?>\\ }\\ }" "![ $1] ( https://redis.io/docs/latest$1 ) " }}
9+
10+ {{/* Remove all shortcodes * /}}
11+ {{ $content := $content | replaceRE "\\ {\\ {% ?/?.* %\\ }\\ }" "" }}
12+ {{ $content := $content | replaceRE "\\ {\\ {< ?/?.* >\\ }\\ }" "" }}
13+
414{{ $content }}
You can’t perform that action at this time.
0 commit comments