mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-17 22:32:10 +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")` }}
|
||||
{{ $noEndnote := printf "" }}
|
||||
|
||||
{{ $preWithTabIndex := `<pre tabindex="0">` }}
|
||||
{{ $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 -}}
|
||||
{{ .Content -}}
|
||||
{{ end -}}
|
||||
|
|
Loading…
Reference in a new issue