mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
refactor: consolidate code block rendering and enhance styling features (#665)
reference issues: #312, #476
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
{{- /* 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 . -}}
|
||||
Reference in New Issue
Block a user