From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30635 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jasper Timmer Newsgroups: gmane.text.pandoc Subject: Re: how to implement callouts in docbook -> markdown Date: Mon, 30 May 2022 11:57:15 -0700 (PDT) Message-ID: <0748d081-5c90-4212-99e2-98b70cfc1da2n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3081_254252836.1653937035039" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13015"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDKOFREV34MRBDFH2SKAMGQE3AIEULI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 30 20:57:19 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nvkZq-0003Cm-VE for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 30 May 2022 20:57:18 +0200 Original-Received: by mail-oo1-f61.google.com with SMTP id j15-20020a4a888f000000b00321764d8f14sf6682848ooa.14 for ; Mon, 30 May 2022 11:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=J/c+clJS+4beUvHCM1Tb47nUDZzktGn7YPLSMUTYsGM=; b=Q+v1nwp+W+vAbUOqr9UnSXm4qL/d1CCMOH4UkptXQ28Acomwl8LtCrVgA5P20eyxQp 0/7/LI1TzWKMTrGI5eJj9tbUioiLH20eJS93t4RWRdkIJWZHQ54BsuZ+v7AImS24ZVeu CBK0JH5EHRBDNTAoMSfJoUM+EJ0Ew8XlowKw5nYaD/Ohv3k1v2s4pGTz77uytmdfdk8L fNfPAwY2gwhUvOYKxICBgr15bU8RCEFwcvo/kVsWrHaiMpiT3eUdyFLehTDZ3qvpm9ym hPO6n6WZ2V7qJBUCUNwBpRgjXmQ7/a/+bb+wtmXuoQyR19+XQJh+2TlgwmkLTa2FS+6P +ivQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=J/c+clJS+4beUvHCM1Tb47nUDZzktGn7YPLSMUTYsGM=; b=ObYwxnztZ/3XyRiOIp27AmHCMYgfunh4gpDGxh4VhlO6E/BYZteebZKJBTUPa/Z9IB kittIOK1cU0dbRlHl8JhIgf196qzXPEYkcW1HN74/Yhk2SEABdmjHGwdsA87CX9lQ61V m/JNlZGcF/N91MNpuhE3MCn+61BJpcRear1OCKod4hKNNVfd2UM/y5ifSKVPKarUHWJ1 o8vnoECEvqT+Qioao/XylkrWXvgy9em+5ixNjcaa4u5c8XxV/EyqtquskyqbowfW5AFS 6MC+LPbCYY3VsAiDs6C7IqPeTH5M/74hV+8Mp6vgG8YeSNLS6nPZTPafQpJHys7snMDl WWqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=J/c+clJS+4beUvHCM1Tb47nUDZzktGn7YPLSMUTYsGM=; b=ohTwOxtU9OLhZ8w/OdmSeId229dpip6V6c3BDMZ975iU3eYwUhohA76k6yeRbfcOSU BPi5zcrzo6Ntct3Sz8f6C5QKceieMGV4aah+sugXeEDs6wqLc9gssGEF5vvhy5IoZISn h9NwL51XUQgZpvfKDm58hffnHiIe6gNYE8ws47eizZdcob3sMy0Ht7ZGsPJgXBkrVVzl XsZVoYVxqxd51gd0iaL4j9qfXUvpSnEm9IzxKCONFNcVg1c7UGxfEE0ZjgSwaoHylNmw q2MSH1x1x8gmOii5l3mTfEL+x9EONJ52YEjs8wbuB3OSoPoyPezYoYBL93/WypVoLNMG Phjw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533XmTOUJsrqgNE8HN0sl0J/3mcgcMMSvXSqMWekGpIspSQ6jdnn Nu4NYyTdpvcEiGp62xXS53g= X-Google-Smtp-Source: ABdhPJwFP9dcYZUi4HYgRZfiDs0WFZ8L74ryDq7GpHAyOBQy0deRr6NetLENhNsR8xnmA60/1eSAOg== X-Received: by 2002:a05:6808:19a9:b0:32b:56bd:27bd with SMTP id bj41-20020a05680819a900b0032b56bd27bdmr10195134oib.218.1653937037909; Mon, 30 May 2022 11:57:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:d78a:b0:f3:426e:e97a with SMTP id bd10-20020a056870d78a00b000f3426ee97als866475oab.2.gmail; Mon, 30 May 2022 11:57:15 -0700 (PDT) X-Received: by 2002:a05:6870:32d6:b0:e3:6e1a:e56b with SMTP id r22-20020a05687032d600b000e36e1ae56bmr10863816oac.206.1653937035647; Mon, 30 May 2022 11:57:15 -0700 (PDT) In-Reply-To: X-Original-Sender: jjwtimmer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:30635 Archived-At: ------=_Part_3081_254252836.1653937035039 Content-Type: multipart/alternative; boundary="----=_Part_3082_362490327.1653937035039" ------=_Part_3082_362490327.1653937035039 Content-Type: text/plain; charset="UTF-8" by the way: callouts: https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/ in docbook XML it looks like this: ---- Examples module demo::basic::Quine import IO; import String; void quine(){ println(program); ** println("\"" + escape(program, ("\"" : "\\\"", "\\" : "\\\\")) + "\";"); ** } str program = ** "module demo::basic::Quine import IO; import String; void quine(){ println(program); println(\"\\\"\" + escape(program, (\"\\\"\" : \"\\\\\\\"\", \"\\\\\" : \"\\\\\\\\\")) + \"\\\";\"); } str program ="; ** ** A remarkable point in the code: the string variable program has as value the text of the module Quine upto here. ** ---- Op maandag 30 mei 2022 om 20:50:29 UTC+2 schreef Jasper Timmer: > I'm trying to convert some asciidoc documentation to markdown. I found > this snippet online: > https://tinyapps.org/blog/201701240700_convert_asciidoc_to_markdown.html > > works pretty darn well :) only callouts are not preserved. They just > completely disappear. How can I fix that? > > I installed latest deb from github. > > Thanks! > Jasper > -- 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/0748d081-5c90-4212-99e2-98b70cfc1da2n%40googlegroups.com. ------=_Part_3082_362490327.1653937035039 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable by the way:

in docbook XML it lo= oks like this:

----
<title>Examples</title>
<para>
<programlisting language=3D"rascal" linenumbering=3D"unnumbered">= module demo::basic::Quine

import IO;
import String;

void quine(){
  println(program); <co xml:id=3D"CO4-1"/><= /b>
  println("\"" + escap= e(program, ("\"" : "\\\"", "\\" : "\\\\")) + "\";"); <co xml:id=3D"CO= 4-2"/>
}

str prog= ram =3D <co xml:id=3D"CO4-3"/>
"module demo::basic::Quine

import IO;
= import String;

void quine(){
=
  println(program);
<= font face=3D"Courier New">  println(\"\\\"\" + escape(program, (\"\\\"= \" : \"\\\\\\\"\", \"\\\\\" : \"\\\\\\\\\")) + \"\\\";\");
}

str program =3D"; <co xml:id=3D"CO4= -4"/></programlisting>
</para>
</formalpara&= gt;
<calloutlist><= /font>
<callout arearefs=3D"CO4-= 3">
<para>A remark= able point in the code: the string variable <literal>program</lite= ral> has as value
the text o= f the module <literal>Quine</literal> upto here.</para>
</callout>
----

Op maandag 30 mei 2022 om 20:50:29 UTC+2 schreef = Jasper Timmer:
https://tinyapps.org/blog/201701240700_convert_asciidoc_to_markdown.html

works pretty darn well :) only callouts are not prese= rved. They just completely disappear. How can I fix that?

I installed latest deb from github.

Thanks= !=C2=A0
Jasper

--
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/0748d081-5c90-4212-99e2-98b70cfc1da2n%40googlegroups.= com.
------=_Part_3082_362490327.1653937035039-- ------=_Part_3081_254252836.1653937035039--