public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc.write helper function for Lua filters?
@ 2019-02-14 20:25 msprev
       [not found] ` <9b10bca2-42b9-4c8b-84ca-21a39daee407-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: msprev @ 2019-02-14 20:25 UTC (permalink / raw)
  To: pandoc-discuss


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

The pandoc.read helper function is incredibly useful in Lua filters. Is 
there any chance of adding a counterpart to expose similar functionality 
for writers, e.g. a pandoc.write function that takes as arguments a pandoc 
document and output format and yields as output a string of formatted text? 

I've wanted to write a Lua filter to extract bits of the ast and kick them 
out, for external use, as strings of html or strings of markdown. More 
generally, when writing Lua filters, it would be incredibly useful for 
diagnostic/debugging purposes to be able to print out bits of the ast to 
the terminal as a string (e.g. in native output format) to make sure the 
filter is working as expected.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9b10bca2-42b9-4c8b-84ca-21a39daee407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2019-02-15 10:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 20:25 pandoc.write helper function for Lua filters? msprev
     [not found] ` <9b10bca2-42b9-4c8b-84ca-21a39daee407-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-02-15  8:51   ` BPJ
     [not found]     ` <CADAJKhBMeaaJZSXMSwhprGZvmYOLrDcLCk8iHkhpTJpkwZS8fw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-02-15  9:04       ` msprev
2019-02-15  9:39   ` Albert Krewinkel
     [not found]     ` <afe71fef-e628-4a93-b843-8f18b3f59f9d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-02-15 10:03       ` msprev

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).