public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Wrapping sections of existing document in <div></div>
@ 2023-06-19 22:11 H
       [not found] ` <e3258495-d762-2f54-cff3-a2607261bcf7-FcZObrvlYduBUy7/sJONFg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: H @ 2023-06-19 22:11 UTC (permalink / raw)
  To: Pandoc Mailing List

What is the "best" way of wrapping parts of an existing document in <div></div> in a filter?

Using insert.table(existingtable, pandoc.Div(existingtextblocks)) does not work since the existing text blocks get duplicated in the output.

I see two options but there might be others:

- Surround existing text blocks with pandoc.RawInline(1, 'html, '<div>') and pandoc.RawInLine('html', '</div>').

- Create a new table and use insert.table(newtable, pandoc.Div(existingtextblock)) and also insert the rest of the document.

Are there other options?


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

end of thread, other threads:[~2023-06-21 22:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 22:11 Wrapping sections of existing document in <div></div> H
     [not found] ` <e3258495-d762-2f54-cff3-a2607261bcf7-FcZObrvlYduBUy7/sJONFg@public.gmane.org>
2023-06-20  0:14   ` H
     [not found]     ` <AC708553-331A-45D3-A618-EAA8BB7784A5-FcZObrvlYduBUy7/sJONFg@public.gmane.org>
2023-06-20 10:37       ` mf
     [not found]         ` <e42adc8d-f75c-4b91-7777-cc162e157c64-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-06-21  0:21           ` H
2023-06-21 15:36       ` BPJ
     [not found]         ` <CADAJKhBZGdihMMgb=2_9rT04RsobJyu+48HxtO5755ADPcnZBQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-06-21 22:58           ` H

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