Thanks Kolen. I will take your suggestion forward, and keep you posted.



On Mon, Nov 6, 2017 at 4:33 PM, Kolen Cheung <christian.kolen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Interesting. I think panflute would be a good fit. Try reading the panflute documentation first. There’s an example on csv table that can show you how to manipulate table elements. You can also checkout the source of pantable.py, which is inspired by the csv example, and is more sophisticated. Other examples in the panflute documentation also shows you how to capture a certain elements (possibly with attributes) in general.

When writing a filter, sometimes it is useful to see the AST of a MWE. Pandoc has the native and json output, while the filters see the JSON, the native is more readable. panflute also has a helper script (I think in the panflute filters repo) that can print the “panflute AST”, which will even be more useful if you use panflute. (panflute basically parses pandoc’s AST into its own using OOP, or in other words, a representation of pandoc’s AST using Python objects.)

--
You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/OBlbFj5HJ9I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ae54a6c7-f694-4337-87d6-15178ab3f18d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CA%2BzEWHBcdnzHekVNY3Tdi4qZCkwbgqt4PWAQKYXOzyXmHtAn2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.