mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 08:12:11 +00:00
Fix tab-selection of <pre> blocks
Turns out some browsers do skip tab-selection of scrollable <pre> blocks
This commit is contained in:
parent
93c394a57b
commit
76a1d8a7ca
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,10 @@
|
||||||
{{ $endnote := `(role="doc-endnote")` }}
|
{{ $endnote := `(role="doc-endnote")` }}
|
||||||
{{ $noEndnote := printf "" }}
|
{{ $noEndnote := printf "" }}
|
||||||
|
|
||||||
{{ $preWithTabIndex := `<pre tabindex="0">` }}
|
|
||||||
{{ $preWithoutTabIndex := `<pre>` }}
|
{{ $preWithoutTabIndex := `<pre>` }}
|
||||||
|
{{ $preWithTabIndex := `<pre tabindex="0">` }}
|
||||||
|
|
||||||
{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | replaceRE $preWithTabIndex $preWithoutTabIndex | safeHTML -}}
|
{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | replaceRE $preWithoutTabIndex $preWithTabIndex | safeHTML -}}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ .Content -}}
|
{{ .Content -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
Loading…
Reference in a new issue