File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5252 "style" $styleAttr
5353 )}}
5454
55- {{$content = replace $content $currentMatch $iconHTML}}
55+ {{ $modifiedMatch := replaceRE `> ` ` data-mf=false> ` $currentMatch 1}}
56+ {{ $modifiedMFIcon := printf "%s %s" $modifiedMatch $iconHTML }}
57+ {{$content = replace $content $currentMatch $modifiedMFIcon}}
58+
5659 {{end}}
5760 {{end}}
5861
59-
6062 {{if (.Params.catalog) }}
6163 < main class ="content content-has-toc " role ="main ">
6264 {{ else if and (gt .WordCount 200 ) (.Params.toc) }}
Original file line number Diff line number Diff line change 11{{- /* Usage: */ -}}
22{{- /* (dict "context" . "icon" "circle") */ -}}
3- < svg class ="lucide " style ="{{ .style | safeCSS }} ">
3+ < svg class ="lucide " style ="{{ .style | safeCSS }} " data-mf =" true " style =" display: none " >
44 < use href ="/images/lucide-sprite.svg#{{ .icon }} "> </ use >
55</ svg >
You can’t perform that action at this time.
0 commit comments