Unfortunately this results in the entire table being deleted by pandoc on my end?
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.