Skip to content

Commit 9ad11f5

Browse files
committed
feat: Fixed playwright issues on old theme
1 parent 8a3c2e8 commit 9ad11f5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

layouts/_default/docs.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@
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) }}

layouts/partials/lucide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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>

0 commit comments

Comments
 (0)