Unfortunately this results in the entire table being deleted by pandoc on my end?

John MacFarlane schrieb am Donnerstag, 6. Mai 2021 um 17:45:48 UTC+2:

You should be able to do this quite easily with a Lua filter.

Something like (untested):

function Table(el)
return pandoc.Div({el}, pandoc.Attr{class='foo'})
end

Dominik Heinz <domi...@gmail.com> writes:

> Hey,
> I use pandoc to convert from md to html. Is there a way to automatically
> add a div with a class around the table tag? Preferably with lua scripting?
> It doesn't seem like Table is a valid identifier?
>
> 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-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/212bcc0a-2987-4217-8276-1d47e259b2e4n%40googlegroups.com.

--
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/2a0574fe-2470-4280-9a54-1987abda058dn%40googlegroups.com.