docx to markdown, how to ignore certain things (like tables and images) #9935
Answered
by
tarleb
michellepace
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
tarleb
Jul 2, 2024
Replies: 1 comment 1 reply
-
This can be done with a pandoc filter. Below is a Lua filter, which should work out-of-the-box, without having to install additional software. However, if you prefer a more pythonic solution, then checkout "panflute". local function omit ()
return {}
end
return {{
Table = omit,
Figure = omit,
Image = omit,
-- and so on.
}} Save the above to a file and pass it to pandoc via the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
michellepace
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be done with a pandoc filter. Below is a Lua filter, which should work out-of-the-box, without having to install additional software. However, if you prefer a more pythonic solution, then checkout "panflute".
Save the above to a file and pass it to pandoc via the
--lua-filter
command line parameter.