One could use replaceRE
to achieve that.
{{ $wrappedTable := printf "<div class=table-wrapper> ${1} </div>" }}
{{ .Content | replaceRE "(<table>(?:.|\n)+?</table>)" $wrappedTable | safeHTML }}
One could use replaceRE
to achieve that.
{{ $wrappedTable := printf "<div class=table-wrapper> ${1} </div>" }}
{{ .Content | replaceRE "(<table>(?:.|\n)+?</table>)" $wrappedTable | safeHTML }}