Simple way to exclude tags only from final Markdown output? #1151
Unanswered
dvirginz
asked this question in
Forums - Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all 👋
I’m trying to find a simple way to exclude certain tags (
like <header> and <footer>
) only from the final Markdown output, not from the entire document or during HTML parsing.I saw some examples on how to preserve specific tags and also the use of the pruning object, but I couldn’t get my own basic filtering to work as expected. In fact, the logic in the non-fit markwon implementation was a bit clearer to me than what’s going on here.
My use case is super simple: I just want the resulting Markdown without the content from the header and footer tags — nothing more.
Any pointers or best practices?
Thanks! 🙏
Beta Was this translation helpful? Give feedback.
All reactions