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 52
52
"style" $styleAttr
53
53
)}}
54
54
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
+
56
59
{{end}}
57
60
{{end}}
58
61
59
-
60
62
{{if (.Params.catalog) }}
61
63
< main class ="content content-has-toc " role ="main ">
62
64
{{ else if and (gt .WordCount 200 ) (.Params.toc) }}
Original file line number Diff line number Diff line change 1
1
{{- /* Usage: */ -}}
2
2
{{- /* (dict "context" . "icon" "circle") */ -}}
3
- < svg class ="lucide " style ="{{ .style | safeCSS }} ">
3
+ < svg class ="lucide " style ="{{ .style | safeCSS }} " data-mf =" true " style =" display: none " >
4
4
< use href ="/images/lucide-sprite.svg#{{ .icon }} "> </ use >
5
5
</ svg >
You can’t perform that action at this time.
0 commit comments