<details> block #117
-
Hi, i must write some md files with details block. And the attribute "open" is not required. Example:
I knew without "open" the result after conversion is bad. All contents of details block disappeared. Do you have any idea how to show contents of details block in pdf? Thank you in advance. My code:
My file: |
Beta Was this translation helpful? Give feedback.
Answered by
simonhaenisch
Feb 23, 2022
Replies: 1 comment 1 reply
-
Hey, you can also inject a script into the page that does this for you ---
script:
content: "document.querySelectorAll('details').forEach(details => { details.open = true })"
---
<details>I'm in the details</details> I just realized that the Lines 84 to 89 in 3e45dc7 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
e2045
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, you can also inject a script into the page that does this for you
I just realized that the
script
option is not mentioned in the docs yet. See here:md-to-pdf/src/lib/config.ts
Lines 84 to 89 in 3e45dc7