I think I've mentioned this before... but I'd be happy to contribute (in a suitable form) the somewhat-pandoc-aware utility that I use for this.

Given this input:

% cat doc.md 

---

a: 1

b: |

  2 3 4

---


# Header


This is a sentence (and a paragraph).


* This is a list item

* And another


| Right | Left | Default | Center |

|------:|:-----|---------|:------:|

|   12  |  12  |    12   |    12  |

|  123  |  123 |   123   |   123  |

|    1  |    1 |     1   |     1  |


: Demonstration of pipe table syntax.


and this filter:

% cat rep.lua 

local utils = require 'utils'


-- do it this way to avoid reporting MetaBlocks twice

function Pandoc(doc)

    utils.temp('meta', doc.meta)

    utils.temp('blocks', doc.blocks)

end


this command:

pandoc doc.md -L rep.lua >/dev/null 2>doc.txt


generates the attached.

On Tue, 7 Jun 2022 at 08:57, <denis.maier-NSENcxR/0n0@public.gmane.org> wrote:

Hi,

When playing around with filters I use pprint.lua or inspect.lua to visualize lua tables. Would it make sense to include some sort of «print the contents of this table» to pandoc ?

Best,

Denis

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/551a3f2a8d364717bcc569baa974573a%40unibe.ch.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxiL81rUdVtCeKovjYeo%3DKaKP1GAbwEiM6_9byZY8t_XvA%40mail.gmail.com.