sergiocorreia / panflute

An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
http://scorreia.com/software/panflute/
BSD 3-Clause "New" or "Revised" License
493 stars 60 forks source link

Consider different check for RawInline formats? #236

Open matthew-brett opened 11 months ago

matthew-brett commented 11 months ago

Thanks for Panflute - as ever - we are using it productively in with our book project.

However, we've run into a problem that the Quarto team think is a bug in Panflute:

https://github.com/quarto-dev/quarto-cli/issues/7215#issuecomment-1759696076

To quote from that description:

This is a Panflute issue, where they're checking for valid formats for RawInlines, but Pandoc is emitting a format that it's not expecting.

Specifically, Panflute is not expecting to see a typst raw block. I believe any RawBlock format string is valid, and that Panflute should not be checking for a set of strings.

Is that possible - to do a more general check that will allow through such valid-but-as-yet-unknown-to-Panflute types?

(With pre-emptive apologies for the possibility that I have misunderstood the issue).