From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31683 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aidan Reilly Newsgroups: gmane.text.pandoc Subject: Re: Transform a fenced div to mkdocs markdown admonition format Date: Thu, 3 Nov 2022 20:40:54 +0000 Message-ID: References: <7AF275BD-12EB-4424-84E5-1A45FF675520@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f8648b05ec96f973" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3746"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDO2LZEJ4EIRBZ6OSCNQMGQEMDLTU6I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 03 21:41:15 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f184.google.com ([209.85.166.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oqh1W-0000pT-It for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 03 Nov 2022 21:41:14 +0100 Original-Received: by mail-il1-f184.google.com with SMTP id n8-20020a056e02100800b00300906a2170sf2407749ilj.2 for ; Thu, 03 Nov 2022 13:41:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667508073; cv=pass; d=google.com; s=arc-20160816; b=SWrCBXhb3i5I7+X7DSpWkLhn21JAbO29vwqXP4SIW/wB0p3CKiM5FuN8hQL683UXcJ TaaGzuFR2Py8I6PcF4F0289WCFvuI/XTLILjj+1IxvTfbmFNdH2nzcZNeHeYNlIVyomV XNjVaV1wMxdewn+gdudbEdM9fTduIOOqM0GvBlfoP5m0We3huaVajVTrTM2XWGW5cttc cRPVzga6gkW7b3Hx0YpSy5HCb1UMKAnODwju0ByHlqVSW83ZN+NFdbsuRGMI/z18Pxl2 lrIB/Ya43gP7YNCCEdPHpftyQ191PfTyd/O3C3zlyA+b3D/343SU3IiFDPpIOQ6HYttN zQ7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=NjdZhwgmOg91nTEFaFa2St8u9F//TTLHM0PqiMUCRu8=; b=MhYEmnwXQF5s8YuZN2cZrgY4Azb5IunRMkNrcmqbIBv47OFwCLIUXu6YtKZ+MRoe69 5p/7KZ5SJ5lCi+TORsKo6JBsdAsfQV1wsQCNrWbZcylaMHv8cRQjMLgSUnwCVKkND7Fm zuFiVG03yIK/fIwtS3a1WiDY+dBR7SdJQDUD08uqFdM7Tw480pJgh9Klvl/4dN3C94UV SgykaXVutKKBEIfoy16R0XnkOaLHXjQQ8UwfAss1s+pp7qpFLnrvIS/8eDnZ1oaeUJaw LulVEwuZQv00/0fe6xJUF99DtAtyM6qH2t2OstptIRLcXb/ZJuknWgGYXZKRXQRvjMtD aWBQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RApLzvMD; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.129.124 as permitted sender) smtp.mailfrom=aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=NjdZhwgmOg91nTEFaFa2St8u9F//TTLHM0PqiMUCRu8=; b=khbr+J4ykzsJP1g8VwaA9vokPGaW2R3q+nxrPZ6kjROHThZibkYBY0Jw6Hv26H50Qf V0SaDS0QOVD93UqEMFGhTBv4kVlOZuektXaD9CLs4aWlxH3Rfmdd4FGVj1egunh+GY9u 3fbRoX3aMP8415uKPlVF4Vq0sPaNOPXOP/uMJhdcnrfqnD5GiplG3/UYGJCRRWZPyXSI wwUs9QpVxoWtkU0RlhIkt2KKzbgQ5txhxmWTvlSrFth1X4mZtByaPICqZgOS+Tsz3QOB Kv8/f7kZjoxLDUl7mFuSGwewnY1fLLTLp0IJKRy8rMYpw1l4RfFYU14uruajTNSWica5 Azyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=NjdZhwgmOg91nTEFaFa2St8u9F//TTLHM0PqiMUCRu8=; b=PBiUx6831+zIhoKTvAryUAJ7zHbLZrasRlDMskR+9Jq6Z4jk7YvKspVgAnbY1VJk7H zjt5NZ2UyCHGWGgn0rFAVtXa+jBipuCcdFZYPmBuB7+nEqWV9skJWL4fYvSLQcA7qwkU acdp9zpOUvWjMM3sjvzvL3vgLgHVElb7xHlJJ8otGRJT2bIVauZFWzYkpXUuAVLomIH7 6UeG746wtmoquz/+QajOj1xQuGsxhjhWrh9LRtyQmxgO1VOe1WncFxRfrN6uNxyXAFuG gf/zt4rlNOqeY2RKP8a39SxCMT1Jf5HX3erMOHMEZLLtHs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2hksXuq+NDYO9NE9C8ZNUn2akrFWzc+QRs+8BeA+IYQBmr1BuV bokrPtLPCvaVabeq36pjCZM= X-Google-Smtp-Source: AMsMyM7cRJOYYVCNHBdi048enwTMzY0FLw8YlVQHgWEvU0Lvj5RzszRqa+PaReTotcylQ+5NkwXzOA== X-Received: by 2002:a92:c5d4:0:b0:300:d9d7:fe2e with SMTP id s20-20020a92c5d4000000b00300d9d7fe2emr2517503ilt.212.1667508073283; Thu, 03 Nov 2022 13:41:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a6b:7310:0:b0:6bc:c32c:3809 with SMTP id e16-20020a6b7310000000b006bcc32c3809ls440295ioh.8.-pod-prod-gmail; Thu, 03 Nov 2022 13:41:10 -0700 (PDT) X-Received: by 2002:a05:6602:2a46:b0:6d1:877b:860e with SMTP id k6-20020a0566022a4600b006d1877b860emr14601822iov.146.1667508070715; Thu, 03 Nov 2022 13:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667508070; cv=none; d=google.com; s=arc-20160816; b=ZpJpRXY4VPMIIrH93+Bss8oV3o6WEzJNxe1uJMOtPqYCxHNSopL3NuHSlaZQkwBP8/ OECmFaKEcEfAE9Q7yUBVt4BhYuxaEpI9RcL3TfvI7d9li6zsdYHX4Bs/p5naBCy8fSC8 LSzH93HxMq+VlotaQLt/NBTVOQf1ySQs9Up8wmeDeA3YE793mSmbR7NBjNoK4lFD3Qvs zetKKE4kxSFOSjPbiZcf7YJwR9zwmF3THTN6g5rW81/euSTgrn57EEqq+QZAtM2gnFdx 3AEo+I3VWP3G7xXRxHxO/gJXJoLQbKxB05JTBZhNgqRAsZpHNZuPPnb6kDoYfYekZvOs DI/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/4wBlIvS/kTrW6Kso/DO010K/cnjZCjSlFkWYPd4Ebo=; b=W9IlgqkIkSHTF7NLTaXdj/vpopkRA4dd9wF9NeD1Lr0yjmjDjt8Bmt2/DzgqJfo0Ef DrcrH0JWZJeGGnVauk8pYDSVTvvz8mDywJzXHtpEzwwzbmomIg+u2Kkzbe3ds/eLKaIb FNg9OpstNnPZI0b6ll/PGs2hckd8n3s6mqW2Q9rgmA2LG74FEbkG/YrB/cNWn+TJEncu gGctkwmHsqGkNR37te8uQqh0cBJOgmopCjY1E1wOcyv9TgEmHq1jbU/NpJX4pcwA/2xO DpIBCHyc6U6hqnSvGHY+63ZKj7qldpw+NTXr1lEYHiNeu1Ir1EQxTbigliGdsM+JZ0W6 IR6g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RApLzvMD; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.129.124 as permitted sender) smtp.mailfrom=aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Original-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [170.10.129.124]) by gmr-mx.google.com with ESMTPS id c7-20020a92cf47000000b002e8ece90ea6si95724ilr.1.2022.11.03.13.41.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 13:41:10 -0700 (PDT) Received-SPF: pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; Original-Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-29-Lo2roodMNI-DtuhJReYOfw-1; Thu, 03 Nov 2022 16:41:08 -0400 X-MC-Unique: Lo2roodMNI-DtuhJReYOfw-1 Original-Received: by mail-ej1-f70.google.com with SMTP id hc43-20020a17090716ab00b0078e28567ffbso1972668ejc.15 for ; Thu, 03 Nov 2022 13:41:08 -0700 (PDT) X-Received: by 2002:a17:907:75f2:b0:7ad:e51e:837f with SMTP id jz18-20020a17090775f200b007ade51e837fmr19190482ejc.0.1667508066956; Thu, 03 Nov 2022 13:41:06 -0700 (PDT) X-Received: by 2002:a17:907:75f2:b0:7ad:e51e:837f with SMTP id jz18-20020a17090775f200b007ade51e837fmr19190461ejc.0.1667508066600; Thu, 03 Nov 2022 13:41:06 -0700 (PDT) In-Reply-To: <7AF275BD-12EB-4424-84E5-1A45FF675520-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Original-Sender: aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RApLzvMD; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.129.124 as permitted sender) smtp.mailfrom=aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31683 Archived-At: --000000000000f8648b05ec96f973 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi John, sorry - yes I am targeting markdown. Ok I=E2=80=99ll try that than= ks. Aidan On Thu 3 Nov 2022 at 20:09, John MacFarlane wrote: > I assume you=E2=80=99re targeting markdown? > > You could then just create a RawBlock with format =E2=80=9Cmarkdown=E2=80= =9D, and put this > content in it with whatever indentation you like. > > > > On Nov 3, 2022, at 9:14 AM, Aidan Reilly wrote: > > > > Hello! > > > > Trying to figure out how to use pandoc +fenced_div with a filter to > transform this: > > > > ::: note > > Here is the first line of this note. > > > > And the second, > > > > And the third! > > ::: > > > > into this: > > > > !!! note > > Here is the first line of this note. > > > > And the second, > > > > And the third! > > > > Struggling to understand if it is possible to "indent" elements using > pandoc. The mkdocs markdown spec requires the body of notes to be indente= d > by 4 spaces. Is there a way to apply indents without stringifying the > content? > > > > 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/ddc82450-b82b-4b8f-9d5f-= 30c6a28c206fn%40googlegroups.com > . > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/unsubscribe. > To unsubscribe from this group and all its topics, 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/7AF275BD-12EB-4424-84E5-= 1A45FF675520%40gmail.com > . > > -- *Aidan Reilly* He/Him/His Senior Technical Writer, Telco (Cork, Ireland) aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org IM/GitHub: aireilly TEL: +353851261126 --=20 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 e= mail 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/CAM4RMsh1iqDjA7WqfCuWJV4NCD_ELXfFL0iV%2BpGUWASvgAzq5g%40mail= .gmail.com. --000000000000f8648b05ec96f973 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi John, sorry - yes I am targeting markdown. Ok I=E2=80= =99ll try that thanks.=C2=A0

Aidan=C2=A0

On Thu 3 Nov 2022 at 20:09, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I assume you=E2=80=99re targeting markdown?

You could then just create a RawBlock with format =E2=80=9Cmarkdown=E2=80= =9D, and put this content in it with whatever indentation you like.


> On Nov 3, 2022, at 9:14 AM, Aidan Reilly <aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>
> Hello!
>
> Trying to figure out how to use pandoc +fenced_div with a filter to tr= ansform this:
>
> ::: note
> Here is the first line of this note.
>
> And the second,
>
> And the third!
> :::
>
> into this:
>
> !!! note
>=C2=A0 =C2=A0 =C2=A0Here is the first line of this note.
>
>=C2=A0 =C2=A0 =C2=A0And the second,
>
>=C2=A0 =C2=A0 =C2=A0And the third!
>
> Struggling to understand if it is possible to "indent" eleme= nts using pandoc. The mkdocs markdown spec requires the body of notes to be= indented by 4 spaces.=C2=A0 Is there a way to apply indents without string= ifying the content?
>
> Thanks!
>=C2=A0
>
> --
> You received this message because you are subscribed to the Google Gro= ups "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.co= m/d/msgid/pandoc-discuss/ddc82450-b82b-4b8f-9d5f-30c6a28c206fn%40googlegrou= ps.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/65G0Kuih1wA/un= subscribe.
To unsubscribe from this group and all its topics, 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/pan= doc-discuss/7AF275BD-12EB-4424-84E5-1A45FF675520%40gmail.com.

--

Aidan Reilly

He/H= im/His

Senior Technical Writer, Telco (Cork, I= reland)

aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

IM/GitHub:=C2=A0aireilly

TEL: +353851261126

=

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAM4RMsh1iqDjA7WqfCuWJV4NCD_ELXfFL0iV%2= BpGUWASvgAzq5g%40mail.gmail.com.
--000000000000f8648b05ec96f973--