As others said it is doable. But I wouldn't suggest using the pandoc AST for preservation. The target formats is more stable than the pandoc API itself. Unlike something like TeX which has been declared feature complete and hence is a stable format, pandoc's AST is still a moving target. It depends on your source format, but the best way to preserve it probably is itself, plus a reproducible recipe to generate an output (recipe should include the steps involved, dependencies including their versions.) On Friday, September 18, 2020 at 12:16:30 PM UTC-7 Brandon Barker wrote: > Hello! > > I'm wondering if it is currently possible to save the pandoc AST of a > document, and have it read in by pandoc at a later time? The use case I > have in mind relates to preservation. It may be possible that an ancient > file becomes difficult to read down the road, though presumably if the old > version of pandoc that originally read it existed, it would be possible, if > possibly more trouble. Whether or not this would be extremely useful would > also depend on if pandoc is pretty good at reading old versions of the AST. > > It looks like the AST includes pandoc-version > information > already, which could be handy in principle, though I don't know if it is > currently used as mentioned above in practice. > > I didn't see the ability to save or read the AST listed as command-line > options (though I may have missed it), but I'm more interested in the > Haskell API anyway. > > Thanks! > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d0fbac54-3906-40fe-9707-2b1065758541n%40googlegroups.com.