public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Saving the pandoc AST
@ 2020-09-18 19:16 Brandon Barker
       [not found] ` <57b6a6d4-134c-4167-9f14-9c0a0607186an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Brandon Barker @ 2020-09-18 19:16 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1382 bytes --]

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 
<https://hackage.haskell.org/package/base-4.12.0.0/docs/Data-Version.html#t: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/57b6a6d4-134c-4167-9f14-9c0a0607186an%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1784 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-04  3:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-18 19:16 Saving the pandoc AST Brandon Barker
     [not found] ` <57b6a6d4-134c-4167-9f14-9c0a0607186an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-09-18 19:41   ` Denis Maier
2020-09-18 20:11   ` Albert Krewinkel
2020-11-04  3:15   ` christi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).