* Create div around tables?
@ 2021-05-03 19:19 Dominik Heinz
[not found] ` <212bcc0a-2987-4217-8276-1d47e259b2e4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Dominik Heinz @ 2021-05-03 19:19 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 627 bytes --]
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/212bcc0a-2987-4217-8276-1d47e259b2e4n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 962 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Create div around tables?
[not found] ` <212bcc0a-2987-4217-8276-1d47e259b2e4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-05-06 15:45 ` John MacFarlane
[not found] ` <m2wnsbamsh.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2021-05-06 15:45 UTC (permalink / raw)
To: Dominik Heinz, pandoc-discuss
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.hz96-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/212bcc0a-2987-4217-8276-1d47e259b2e4n%40googlegroups.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Create div around tables?
[not found] ` <m2wnsbamsh.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2021-05-09 14:39 ` Dominik Heinz
[not found] ` <2a0574fe-2470-4280-9a54-1987abda058dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Dominik Heinz @ 2021-05-09 14:39 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1497 bytes --]
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
[-- Attachment #1.2: Type: text/html, Size: 2550 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Create div around tables?
[not found] ` <2a0574fe-2470-4280-9a54-1987abda058dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-05-09 15:44 ` John MacFarlane
0 siblings, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2021-05-09 15:44 UTC (permalink / raw)
To: Dominik Heinz, pandoc-discuss
Sorry, the correct filter is this:
function Table(el)
return pandoc.Div({el}, {class='foo'})
end
Dominik Heinz <domi.hz96-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-09 15:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-03 19:19 Create div around tables? Dominik Heinz
[not found] ` <212bcc0a-2987-4217-8276-1d47e259b2e4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-06 15:45 ` John MacFarlane
[not found] ` <m2wnsbamsh.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-05-09 14:39 ` Dominik Heinz
[not found] ` <2a0574fe-2470-4280-9a54-1987abda058dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-09 15:44 ` John MacFarlane
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).