mirror of
https://github.com/NohamR/pdfy.git
synced 2026-11-25 15:30:05 +00:00
Automatically unfold details
This commit is contained in:
1 parent
5ce76ffea6
commit
9fba22ca6c
1 file changed
+1
@@ -34,6 +34,7 @@ export function enhanceHtml (html, customCss, highlightStyle = 'github') {
|
||||
'</head>',
|
||||
`${highlightCss(highlightStyle)}${HIGHLIGHT_JS}</head>`
|
||||
)
|
||||
enhanced = enhanced.replace(/<details(?![^>]*?\bopen\b)/g, '<details open')
|
||||
if (customCss !== null) {
|
||||
enhanced = enhanced.replace(
|
||||
'</head>',
|
||||
|
||||
Reference in new issue
Block a user