mirror of
https://github.com/NohamR/pdfy.git
synced 2026-10-10 18:29:55 +00:00
Automatically unfold details
This commit is contained in:
@@ -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