mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-05 04:40:40 +00:00
7 lines
358 B
HTML
7 lines
358 B
HTML
|
{{ $content := .Content }}
|
||
|
|
||
|
{{ $content = $content | replaceRE `<nav id="TableOfContents">\s*<ul>\s*<li>\s*<ul>` `<nav id="TableOfContents"><ul>` | replaceRE `</ul>\s*</li>\s*</ul>\s*</nav>` `</ul></nav>` | safeHTML }}
|
||
|
{{ $content = $content | replaceRE `(<table>(?:.|\n)+?</table>)` `<div class=table-wrap> ${1} </div>` | safeHTML }}
|
||
|
|
||
|
{{ return $content }}
|