Replies: 1 comment 6 replies
-
Disregard the lua below - it doesn't work because Para doesn't have classes. non working filterfunction Para (elem)
for i, c in pairs(elem.classes) do
if c == "head" then
return pandoc.Header(1, elem.content)
if c == "sub" then
return pandoc.Header(2, elem.content)
end
return elem
end |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's a great old music info website. Each band/artist has a page and I'd like to grab some as Markdown...and later merge into an ePub. But it uses 'non-standard' HTML for the "Headings". So, what would be the H1 (the band name) is:
And the History etc subheadings are:
...which would be H2s.
Can i use Pandoc, with some coding, to convert these to Markdown
# THE ANGELS
and## History
?If it helps, I know enough about Regex to find/replace them:
I'm on Windows and am using a PowerShell terminal.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions