From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31826 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aidan Reilly Newsgroups: gmane.text.pandoc Subject: Re: docbook codeblock callouts > markdown Date: Thu, 1 Dec 2022 08:57:34 -0800 (PST) Message-ID: <42d817a7-49f5-452a-a38c-d0764ec3e5cdn@googlegroups.com> References: <99430384-ef3a-4534-a9da-8dcbcf7f0f91n@googlegroups.com> <8735a9po3h.fsf@zeitkraut.de> <7925cbe1-1d0d-4b9f-abe4-9224472bd417n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1100_591558072.1669913854828" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4548"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDO2LZEJ4EIRBA52UOOAMGQE3DANSQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 01 17:57:44 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f187.google.com ([209.85.215.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p0msa-00010n-2I for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 01 Dec 2022 17:57:44 +0100 Original-Received: by mail-pg1-f187.google.com with SMTP id i19-20020a63e913000000b004705d1506a6sf2227431pgh.13 for ; Thu, 01 Dec 2022 08:57:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669913862; cv=pass; d=google.com; s=arc-20160816; b=Srs8qz5WgqrrXH5UfOlQfIgW4lA7TkZqzo1Tbyz3NtIYI0SwoFA7SMQaSNNG1s4rE4 BJe+kpzer836ksKMD4ZvfdVSShdB+CaIP5NvNG/UmM409SJxONaRKkPc7VUHvArLt8Zp AYfamr1X4MjcsVLs5aaGQnC4zZ9WjOm8kzsokDGHewp1W/g7E20nYZrAgU8wD8sYiuNW mwGCUtHRgiHekPRk6wjeXIBpiO/NaiDrsbkKbV02P0JwN2h5uaJvGZA/J8yUE3+oHa6B lbqhPwcU0zkot+0kdg97FyuwHJCxsKOiSON+7AQ9Dap424+uirUoK3rPDQqYXYrxgnKA w7KA== 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:mime-version:subject :references:in-reply-to:message-id:to:from:date:sender :dkim-signature; bh=qxbHahhfT29RBs6dRqGpF9disNr2ZUXbBgp13rQvV6c=; b=P4u5E2Hs9lVoav7ISOy/rbiD3pO70VC3E6b6WtMXfaAgOEJSPNGjLIsglYPAfVXFuc jBuVQFgamAwup10yFiVEOlKEB+rIvNiOKi9FCmKfQb9hIUMm8KN/eI5Ga5DtUlZbtKmX LSO1LTM3S2lHVe1/H5fF4GqObP6dcZ5KdAZ9gKhKDg7ZK+paI1nFczOCfwmAHSs+5ygd 9t1kuLS1AgmZrbzFwegRIRBqaoen8IKs22RyFT/Kxu+QLbpaxIGvRfOOtN6TLndjxCpD 7vYaxyO3Fm+9WgrByRm+b/I34aNa7UOTno2uPmCSnTPGv55BSHGJKYFdUHr1qK3kRUQC xQ2Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VaRtJ85I; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.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:mime-version :subject:references:in-reply-to:message-id:to:from:date:sender:from :to:cc:subject:date:message-id:reply-to; bh=qxbHahhfT29RBs6dRqGpF9disNr2ZUXbBgp13rQvV6c=; b=H8o4RJPkDFe+M2lDxdbzerVP1jUZFxEWo4vQhTrmny9r2uUyZyQyXHgjOGRR1q+Ncv gamyvJ60D8Z2BaEkp0rx/RD9SWi1IQQIIBAjba9+UN5k/Yb0bC3whYCrRt7a2qmaf/QY 0I+RElHDzAAuOfYrC3Vul8FL3kS5RBdJIokT+1gHAbMqr6tNE0eKryDPtc8vWXfZJh5j 8C3crQP+5Cl6LIR6AtWEjJBCYZ0F6fkrimW/Y8eSfd5Zicku21HgzZVQhDmSxgQzyAqv M4d30fFFCiT16cOUeHbrrMwqBFy7BY1k+GxrW19cwx2pg42TDX6wo1UANbMBfRkUO5l2 vVnQ== 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:mime-version :subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=qxbHahhfT29RBs6dRqGpF9disNr2ZUXbBgp13rQvV6c=; b=vJfs0WJRNN08A0Ld8eGpLONNa6EIuNYsSwOdJaOCzn52pPlTt+cAuiBoq611gL2LRb U5mlJwW6X1VylkV1mCdfaX7cfrRY9UXM2k+sBoqATm8725FIPCVVbGhJHspG5NoUJck6 IAT2wFYMrVU1++CxGjcC9VlqAx7w4Lo+5EBRwCV26V3u3MF3jQJ+v8dno0OnLV5PB5EK kB2QmflKXzzaGNeU6rvoP/MHirzkNRHVTQCr6H3tO5RJyrd/wTGMNGLGDXR+tl0rcSDj 1S4Lq8ysgdyMi6Oi9o752Od0qBHeoXmHGewu/KBedtqnFs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pnCj64wJgu4Qd159KB+zcY8OrWsvHVU5idmcaph3bajIr1GVYG3 nPgfxI1PPn/A/hsRTDwC040= X-Google-Smtp-Source: AA0mqf5OuX0+fG+v4at3Eay1HFZ+oPkyjZjj3xlPyOScht3YZyEAIC6rmfnnLXvpDjC8tcxvOoQ73A== X-Received: by 2002:a63:f545:0:b0:477:e3ce:739c with SMTP id e5-20020a63f545000000b00477e3ce739cmr27996053pgk.363.1669913862647; Thu, 01 Dec 2022 08:57:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:868e:b0:189:b2b2:56d5 with SMTP id g14-20020a170902868e00b00189b2b256d5ls2143120plo.0.-pod-prod-gmail; Thu, 01 Dec 2022 08:57:38 -0800 (PST) X-Received: by 2002:a17:90a:d38a:b0:218:a7e6:60df with SMTP id q10-20020a17090ad38a00b00218a7e660dfmr57629035pju.38.1669913858730; Thu, 01 Dec 2022 08:57:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669913858; cv=none; d=google.com; s=arc-20160816; b=ERQ+JQV+FbPvvG0OcKRjow6TgGaj4hDWaGwaoAGhw3tEvQiHTDKQviOKuKexkhqXc3 l9ebFBJA4ctZmwKaUjAkuz0qWleng7rGfTlh49YJ0T3hLynpX7oSvYOT/jDyYRNtPGG3 AmwiWk0p18oqGlBfCd4bMGEudoAak8S9SyzhU677QFs/fll2TsI0REVwoN2JpF0XnjoH zzdK24cYUd9psybU0W1i9g1Ztv2doiFF+TGXD9Y99nJJdfGmemCz7xiXPUptBHnXJS5F W8VnFD2rdoGTEt3YI2TOH5yRhqRVzYn/cBYAjR1V78oNf6Fyy65Wp3Xygl5neTaqa+au FTMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :dkim-signature; bh=XAwz2qSnQbEaU2sBkgdz9ILxnoz8xhWcsBUR3gfKQ2U=; b=R2pOs18WLc6o2Amn5Tt0yvmLuxCoh7OyjLG3gSQYtN/FDHWr4Kdm4qa7z7lwTEUV5a NqjzQSAtlGmz6CuNAGWtTTUeV2O4J6EDmVEDooBXPqyhrX5W4MXJPlCg1iSAgocaHbkt WO/VcqMLLvD5sLhjCofFv285KK6vmxBPilnp9j45HdgoC7EPf7k0T6iyOL9CTj/EdbZE NGVePUneL5icdz6PlZEXQ3XF6zhCijNxxXRPSire57BL47gnnpHGui5yXoZcLsujaSM4 X192JgmxtbVMgyieUKwr56SMN5Zu588IzsX9d4w+GDz3LOAZhnz4z/tmOASqggI0SB2o QVJw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VaRtJ85I; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.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.133.124]) by gmr-mx.google.com with ESMTPS id l128-20020a633e86000000b00477c6022083si239410pga.2.2022.12.01.08.57.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Dec 2022 08:57:38 -0800 (PST) Received-SPF: pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; Original-Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-674-7AFiTC6RO-OPoUUHUf_Srg-1; Thu, 01 Dec 2022 11:57:36 -0500 X-MC-Unique: 7AFiTC6RO-OPoUUHUf_Srg-1 Original-Received: by mail-ot1-f69.google.com with SMTP id g68-20020a9d12ca000000b0066e6dfe3685so1043670otg.7 for ; Thu, 01 Dec 2022 08:57:36 -0800 (PST) X-Received: by 2002:a05:6870:9e02:b0:13b:13c1:53dd with SMTP id ps2-20020a0568709e0200b0013b13c153ddmr29973935oab.189.1669913855965; Thu, 01 Dec 2022 08:57:35 -0800 (PST) X-Received: by 2002:a05:6870:9e02:b0:13b:13c1:53dd with SMTP id ps2-20020a0568709e0200b0013b13c153ddmr29973926oab.189.1669913855639; Thu, 01 Dec 2022 08:57:35 -0800 (PST) In-Reply-To: <7925cbe1-1d0d-4b9f-abe4-9224472bd417n-/JYPxA39Uh5TLH3MbocFFw@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=VaRtJ85I; spf=pass (google.com: domain of aireilly-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org designates 170.10.133.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:31826 Archived-At: ------=_Part_1100_591558072.1669913854828 Content-Type: multipart/alternative; boundary="----=_Part_1101_199181160.1669913854828" ------=_Part_1101_199181160.1669913854828 Content-Type: text/plain; charset="UTF-8" Wondering about this again. Albert, are you suggesting something like a custom docbook reader might be useful here? https://pandoc.org/custom-readers.html Are thee examples of custom docbook readers you can point to? Thanks, Aidan On Friday, November 25, 2022 at 10:24:13 AM UTC Aidan Reilly wrote: > Hi Albert! > > So here is the complete example: > > $ cat callout.adoc > [source,yaml] > ---- > bmc: > address: > credentialsName: <1> > disableCertificateVerification: True > ---- > <1> `credentialsName` needs a callout > > > $ cat callout.xml > > > >
> > Untitled > 2022-11-25 > > bmc: > address: <bmc_address> > credentialsName: <secret_credentials_name> > disableCertificateVerification: True > > > credentialsName needs a callout > > >
> > > $ pandoc -t markdown -f docbook callout.xml > ``` yaml > bmc: > address: > credentialsName: > disableCertificateVerification: True > ``` > > - `credentialsName` needs a callout > > I'm just not clear whether this can be handled with a lua filter or not. > > Thanks, > > Aidan > > On Wednesday, November 23, 2022 at 5:39:22 PM UTC Albert Krewinkel wrote: > >> >> Aidan Reilly writes: >> >> > A feature of docbook/asciidoc that is really useful is codeblock >> > callouts. It seems that this is not currently supported in the latest >> > pandoc. >> >> I didn't know about callouts, they seem like a nice and useful feature: >> https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/ >> >> Could you post the DocBook code generated by asciidoctor? I suspect that >> this feature would require changes to the docbook reader, but maybe once >> could make do with a custom Lua reader. >> >> > Is there a way to tell pandoc to passthrough codeblocks "untouched"? >> > I think if this was the case a lua filter could apply the rest of the >> > markup I need. >> > >> > Example: >> > $ cat callout.adoc >> > [source,yaml] >> > ---- >> > bmc: >> > address: >> > credentialsName: <1> >> > disableCertificateVerification: True >> > ---- >> > <1> `credentialsName` needs a callout> >> > >> > Run through asciidoctor > pandoc: >> > >> > $ asciidoctor -b docbook -o - callout.adoc | pandoc -t markdown -f >> > docbook >> > ``` yaml >> > bmc: >> > address: >> > credentialsName: >> > disableCertificateVerification: True >> > ``` >> > >> > - `credentialsName` needs a callout >> > >> > Any other suggestions or strategies welcome >> >> >> -- >> Albert Krewinkel >> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >> > -- 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/42d817a7-49f5-452a-a38c-d0764ec3e5cdn%40googlegroups.com. ------=_Part_1101_199181160.1669913854828 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wondering about this again. Albert, are you suggesting something like a cus= tom docbook reader might be useful here? https://pandoc.org/custom-rea= ders.html Are thee examples of custom docbook readers you can point to?&nbs= p;

Thanks,

Aidan

On Friday, November 25, 2022= at 10:24:13 AM UTC Aidan Reilly wrote:
Hi Albert!

So here is the complete exampl= e:=C2=A0

$ cat callout.adoc
[source,yaml]
----
bmc:
=C2= =A0 address: <bmc_address>
=C2=A0 credentialsName: <secret_cred= entials_name> =C2=A0<1>
=C2=A0 disableCertificateVerification: = True
----
<1> `credentialsName` needs a callout


$ ca= t callout.xml
<?xml version=3D"1.0" encoding=3D"UTF-8&= quot;?>
<?asciidoc-toc?>
<?asciidoc-numbered?>
<= article xmlns=3D"http://docbook.org= /ns/docbook" xmlns:xl=3D"htt= p://www.w3.org/1999/xlink" version=3D"5.0" xml:lang=3D&q= uot;en">
<info>
<title>Untitled</title>
= <date>2022-11-25</date>
</info>
<programlisting = language=3D"yaml" linenumbering=3D"unnumbered">bmc:<= br>=C2=A0 address: &lt;bmc_address&gt;
=C2=A0 credentialsName: &= amp;lt;secret_credentials_name&gt; =C2=A0<co xml:id=3D"CO1-1&qu= ot;/>
=C2=A0 disableCertificateVerification: True</programlisting&= gt;
<calloutlist>
<callout arearefs=3D"CO1-1"><= br><para><literal>credentialsName</literal> needs a callo= ut</para>
</callout>
</calloutlist>
</article= >


$ pandoc -t markdown -f docbook callout.xml
``` yaml
= bmc:
=C2=A0 address: <bmc_address>
=C2=A0 credentialsName: <= secret_credentials_name> =C2=A0
=C2=A0 disableCertificateVerification= : True
```

- =C2=A0 `credentialsName` needs a callout

I= 9;m just not clear whether this can be handled with a lua filter or not.
Thanks,

Aidan

On Wednesday, Novem= ber 23, 2022 at 5:39:22 PM UTC Albert Krewinkel wrote:

Aidan Reilly <aire...-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:

> A feature of docbook/asciidoc that is really useful is codeblock
> callouts. It seems that this is not currently supported in the lat= est
> pandoc.

I didn't know about callouts, they seem like a nice and useful feat= ure:
https://docs.asciidoctor.org/asciidoc/late= st/verbatim/callouts/

Could you post the DocBook code generated by asciidoctor? I suspect tha= t
this feature would require changes to the docbook reader, but maybe onc= e
could make do with a custom Lua reader.

> Is there a way to tell pandoc to passthrough codeblocks "unto= uched"?
> I think if this was the case a lua filter could apply the rest of = the
> markup I need.=20
>
> Example:=20
> $ cat callout.adoc
> [source,yaml]
> ----
> bmc:
> address: <bmc_address>
> credentialsName: <secret_credentials_name> <1>
> disableCertificateVerification: True
> ----
> <1> `credentialsName` needs a callout>
>
> Run through asciidoctor > pandoc:
> =20
> $ asciidoctor -b docbook -o - callout.adoc | pandoc -t markdown -f
> docbook
> ``` yaml
> bmc:
> address: <bmc_address>
> credentialsName: <secret_credentials_name> =20
> disableCertificateVerification: True
> ```
>
> - `credentialsName` needs a callout
>
> Any other suggestions or strategies welcome


--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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://groups.google.com/d= /msgid/pandoc-discuss/42d817a7-49f5-452a-a38c-d0764ec3e5cdn%40googlegroups.= com.
------=_Part_1101_199181160.1669913854828-- ------=_Part_1100_591558072.1669913854828--