From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31789 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: docbook codeblock callouts > markdown Date: Wed, 23 Nov 2022 18:34:56 +0100 Message-ID: <8735a9po3h.fsf@zeitkraut.de> References: <99430384-ef3a-4534-a9da-8dcbcf7f0f91n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31392"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBR5V7GNQMGQEKYV75YY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 23 18:39:24 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f62.google.com ([209.85.208.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oxtiV-0007wN-CS for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 23 Nov 2022 18:39:23 +0100 Original-Received: by mail-ed1-f62.google.com with SMTP id j9-20020a05640211c900b004698365dc84sf6265689edw.0 for ; Wed, 23 Nov 2022 09:39:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669225163; cv=pass; d=google.com; s=arc-20160816; b=TCl7ehSMsr+Bn5all30wM2WMdvNcPg2jjl1Sc1FouZigwag2WXBnOGgy+LT5FuHrGp 6nEkoLgimr7aokbnqQydcklSg15SfJSl6dTqUSiGzxK3RmwfoADjbQKRUnBHYy9X8cQL zEkN/OaJNFXrPpTOWNPqIFiewS+I5FLqKrAzcnvQD7/AGcEl2N3JtUJpEemU8B9nkc/b u35cKKLLuRC6EhzP9cC1bIIsmlgm+JsaOe4lx2rF7ZSbsmY7lsyQtEhaFxzsBvGzi2+u 8/9EKU3btDvCrFUUeq0wnjI180J3cfZf1y32FTCRwdn/FqWUjuArTmp+IV5sF7Dg6FV9 xWyA== 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:message-id :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=OwIOkr1ZlxTKpE3uzL9axAqNZU4DOgI4X22lKpmBVC8=; b=tlxyWxNGBVpjCHQ3Z00cokelRX4AB275SlglYSaSOGmJPX2iDYnZPUiujlTobQ6gSN SZmx+Ztd4/5YyUaB1IASW3j7tP6zjJwBZJAMhGbIVvyhh5br3H+zTJQ1JaDyn0nn6RC2 HVgx9XOcvFsd6tkqg4OyWI27v48ypftufekkABa06TiyFDXcO2c2IyMnSRJK4/XPVJh/ wZ0GdfQ7BzJWzkDl73jpCzcFNYElLY6/m7SBfwhMqdYb7B0tWpo5VxT9RXfWX2DStm5/ ylQlLr/KWo+kWgIqKrOY5xFFLAlK9DT7ecRdDlm2lgDss44+cpQ2Bmy4PDYTBm3hPoqw 1J2A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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 :message-id:in-reply-to:date:subject:to:from:references:sender:from :to:cc:subject:date:message-id:reply-to; bh=OwIOkr1ZlxTKpE3uzL9axAqNZU4DOgI4X22lKpmBVC8=; b=XTPeTbhFUYL8iOX6INbFmZVWj0wQRcq6UEIVVCAXe4DeEqpSCHYKzAPiYP/hsxLumZ afOYDvBI+5cMpJ2isrm/8ALpMXA+wRIY34+Zzxqu1Y/ztmImnYXA71SduIheyMdWDp6u ezbxjeNXeuFEwNnd5Un0NkOgF+59f7S++vX//d5FWQ3UqeA94BWMF5lR2nVc4kfjzuHQ CgDxARS8hU3lu0Wu3Pb3KiKIma3Y1qi5qbkYShWFL9dLk5qMiSwJc9ehZS9n7fwEWn+z KoAQ4IHJcLHdwOgpwlmu8+AbZW2LOXx5wtGrct0xe44t3uVvlItJiWQUy5fvbn4ZqHUC rrdA== 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 :message-id:in-reply-to:date:subject:to:from:references :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=OwIOkr1ZlxTKpE3uzL9axAqNZU4DOgI4X22lKpmBVC8=; b=WM5qM2O14hmx3TrRGDKLBvK1tzLYWn4tQMs7sxN/AYfjJXC8C31nEAoBI/9rqcTVKp dywsu8/Ki0yBFb6/8ktxPr9F7BGXBNT2DmSOVqSG8344q0HN4Kby4tyuf7WzrlylQxBY aIoczOLuIWRnO15e/HFKJjA01wLsICM2MvIpiTTunkADX0TrqJXE0GbI2GXJee5llQm5 eUC3B0+8r3C9/1Oer12QstuvevBTMvTnbIvZ6u3jATte4t54q8Ht3jxaPip9Dhmu7yst OsWk4TJI2TAqCiaMAq2U1SsPgnhNtxMX5C92ZDT+OSA5pd Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pm3fd7Bft2dJxF0dr+hxQO2mjVobrKIJadE5SI61JjcOiQ9e+wA uKESxHLhIkqecdotwMdwfCA= X-Google-Smtp-Source: AA0mqf4uN8Mbl2DmT1cujPVloUR/5FFOglREB4mP5skL25eQ3NBadk25RJSAYSvNB2d2Zy5Dya8ltw== X-Received: by 2002:a17:906:348b:b0:78d:9e04:d8c2 with SMTP id g11-20020a170906348b00b0078d9e04d8c2mr24177969ejb.614.1669225162780; Wed, 23 Nov 2022 09:39:22 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:35d3:b0:45c:bfd9:fb45 with SMTP id z19-20020a05640235d300b0045cbfd9fb45ls3112012edc.3.-pod-prod-gmail; Wed, 23 Nov 2022 09:39:18 -0800 (PST) X-Received: by 2002:a05:6402:b1a:b0:469:15eb:71b5 with SMTP id bm26-20020a0564020b1a00b0046915eb71b5mr21466101edb.312.1669225158057; Wed, 23 Nov 2022 09:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669225158; cv=none; d=google.com; s=arc-20160816; b=k2/9nuP+focwAUxGYfb7eWzhxAOKH4A0CpFBsOYBi3uPlbXJ08M2O6YtQ2aFnp8jXu MLggUGtAQh6mF9f1bLskFXDVzHB1Myi92RZOjl5Bgz/nTA3OwkRuIET9q2dHFH30vZDm c5UgPBUsd6Vdznh/bXazGDB/+gbu3nPdAUbJQOdfmRP4M0RE8yT4WGl7R3Ga16WvU+No /w1NJgdH+xNNiBBz9JJpl8HtjCBFjl7wTBmq1haUEJf+zsh0Sobz/SahwhtZdEVEr6b7 U5JGW7fdbOzratgsu/4HMrWSIqalIYNeL5gSw3aY+Gi8lLGTTSIIkjXVU5FHtjjGuHOH UKbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=dQ1OykFGFBu+1NB907BIXPTMV8mJVZXJNBqmfV6TGrc=; b=qkaYY+aRqmMe6CtVMwCiGiSygtjfWRmTATk96rcp2h8IBu/UOKNx1vBv8RwC2j6dTW QpIoIFW7eRk0H6dtPv+5+tCr66570Nfoc/KW3+I/cC4z6YCi0ZjQsuKxlHFvxB2zZOxn +UKPBxumO8U10BN+crXOReA9okjg/1U2Hedy5LB7gx4Jw2pHDTLJlHxhpqCPJJBpbDdB JAoubc/KWYp+aZgEVyqAQhsbvVSRnRvHQdNNvbscrFOq22EiwjR/1kpVW19D1OiOfRCN CbqYnsWvpDvdknAWigtL7CM3G8bUrlBCquy2VMAtQZwU20szuB5tWx4ey83eb45+GjL7 tjxQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org. [80.241.56.152]) by gmr-mx.google.com with ESMTPS id hg13-20020a1709072ccd00b007ba8b8a416fsi44974ejc.2.2022.11.23.09.39.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 09:39:18 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) client-ip=80.241.56.152; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4NHSzl3ww2z9sWN for ; Wed, 23 Nov 2022 18:39:15 +0100 (CET) In-reply-to: <99430384-ef3a-4534-a9da-8dcbcf7f0f91n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Queue-Id: 4NHSzl3ww2z9sWN X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:31789 Archived-At: 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