public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to indent a block when exporting to reStructuredText
@ 2020-11-29 21:54 Denis Bitouzé
       [not found] ` <875z5n7rsg.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 32+ messages in thread
From: Denis Bitouzé @ 2020-11-29 21:54 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi,

(Disclaimer: I'm a pandoc beginner.)

I have to convert DokuWiki files containing some unusual (meaning from
plugins) tags that are exported verbatim to reStructuredText. For
instance, one of these tags is:

  ┌────
  │ <note>
  │ Foo
  │ 
  │ Bar
  │ </note>
  └────

and I'd like to export it to reStructuredText as:

  ┌────
  │ .. note::
  │    Foo
  │    
  │    Bar
  └────

that is, the tag's content has to be indented with 2 consecutive spaces.

I guess this can be done with a lua filter but I must admit I have no
idea how to:

- identify such a tag (its beginning and its end),
- express the content has to be indented with 2 spaces.

Any help would be welcome.

Thanks.
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/875z5n7rsg.fsf%40example.com.


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

end of thread, other threads:[~2020-12-05 22:48 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29 21:54 How to indent a block when exporting to reStructuredText Denis Bitouzé
     [not found] ` <875z5n7rsg.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-11-30  0:37   ` John MacFarlane
     [not found]     ` <m2o8jfof2r.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-30  8:38       ` Denis Bitouzé
     [not found]         ` <87eekbjl2a.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-11-30 19:47           ` Denis Bitouzé
     [not found]             ` <877dq2iq4d.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-01 18:55               ` John MacFarlane
     [not found]                 ` <m2czztxsnf.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-02 10:28                   ` Denis Bitouzé
     [not found]                     ` <871rg8fqo3.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-02 15:16                       ` EBkysko
     [not found]                         ` <0d1533ca-8cf8-4a50-8318-a770eaaf2d31n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-02 16:23                           ` EBkysko
2020-12-02 16:47                           ` Denis Bitouzé
     [not found]                             ` <87360oduiq.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-02 18:15                               ` John MacFarlane
     [not found]                                 ` <m2mtywoz0f.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-03  9:16                                   ` Denis Bitouzé
2020-12-02 19:15                               ` EBkysko
     [not found]                                 ` <c210b412-3d47-45d5-a7e7-c55b1086d587n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-03 10:11                                   ` Denis Bitouzé
     [not found]                                     ` <87k0tzci6s.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-03 15:49                                       ` EBkysko
     [not found]                                         ` <db1f8570-4afc-45ee-ac1f-0ae4435cf833n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-03 17:34                                           ` [SOCIAL]Re: " Denis Bitouzé
     [not found]                                             ` <874kl2dca6.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-03 20:17                                               ` BPJ
     [not found]                                                 ` <CADAJKhANzMvwhURnVUh49xZzRQFKUnpyCyeZtp+nQ7Nc82ZmVQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-12-03 21:03                                                   ` EBkysko
     [not found]                                                     ` <7b398756-0b85-490b-b05e-8fd4fcaaecd5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-03 22:00                                                       ` EBkysko
     [not found]                                                         ` <6221eae9-b70a-4f53-b512-7655c2ac6858n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-04  9:28                                                           ` BPJ
     [not found]                                                             ` <CADAJKhDptqz5OCCDNxXL6p6qDBk0kKkpr-y+8+ikZmspxC0ULA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-12-04  9:37                                                               ` BPJ
     [not found]                                                                 ` <CADAJKhAHahcvktOyqyY+EB87DJSqo3aaVT7eeBtpDvCcfka5Vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-12-04 20:51                                                                   ` [SOCIAL]Re: " Denis Bitouzé
     [not found]                                                                     ` <878sadxpkk.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-05 22:48                                                                       ` BPJ
2020-12-04 14:50                                                               ` EBkysko
2020-12-04  8:43                                                       ` [SOCIAL]Re: " Denis Bitouzé
2020-12-03 21:06                                                   ` BPJ
     [not found]                                                     ` <CADAJKhAM88Cm+-G9oVGM0eJUpPpUUpCkPVQrabNSqKXJOY7r-w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-12-04  8:42                                                       ` [SOCIAL]Re: " Denis Bitouzé
2020-12-03 20:20                                               ` EBkysko
     [not found]                                                 ` <0a5a4d99-e862-43c4-8664-4b1b60f36e00n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-03 22:44                                                   ` EBkysko
     [not found]                                                     ` <ef8524a3-956b-4e42-adeb-761197c42d08n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-04  8:46                                                       ` [SOCIAL]Re: " Denis Bitouzé
     [not found]                                                         ` <87eek6arh1.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-04 14:31                                                           ` EBkysko
     [not found]                                                             ` <8c84d892-5412-4fd4-9718-70866142d19dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-04 20:28                                                               ` [SOCIAL]Re: " Denis Bitouzé
2020-12-04  8:25                                                   ` Denis Bitouzé

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