Replies: 1 comment 1 reply
-
You could use a filter for this. function Div(el)
if #el.classes > 0 and el.classes[1] == 'WRAPPER_Content' then
return el.content
end
end |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use the ChunkedHTML feature to parse a HTML file into a set of individual files splitting on the level 1 header
<h1>
Here is my Pandoc command:
pandoc -t chunkedhtml --split-level=1 --template=chunked-template.html -o RN_File ResTest1.html
The issue appears to be that the HTML file has a
<div>
wrapper at the beginning of the<body>
which is treated as level 1 and any subsequent<h1>
tags are ignored. How can I ignore the<div>
tag, apart from manually editing the HTML file before I run Pandoc?Here is the full file content:
Beta Was this translation helpful? Give feedback.
All reactions