mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
c35dce56d0
resolve #503
7 lines
300 B
HTML
7 lines
300 B
HTML
{{- /* Code wrapper */ -}}
|
|
{{- $REin := cond (strings.Contains . `<table class="lntable">`)
|
|
`(<table class="lntable">[\s\S]*?<\/table>)`
|
|
`(<pre tabindex="0" class="chroma">[\s\S]*?<\/pre>)` -}}
|
|
{{- $REout := printf `<div class="code-wrapper">$1</div>` -}}
|
|
{{- return replaceRE $REin $REout . -}}
|