From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23381 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: md->asciidoc inline code has plus signs Date: Wed, 04 Sep 2019 14:45:30 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34868"; mail-complaints-to="usenet@blaine.gmane.org" To: Miguel =?utf-8?Q?Gualdr=C3=B3n?= , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBB7BYDVQKGQE23OMC6Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 04 23:45:50 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf1-f183.google.com ([209.85.210.183]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i5d66-0008r1-7i for gtp-pandoc-discuss@m.gmane.org; Wed, 04 Sep 2019 23:45:50 +0200 Original-Received: by mail-pf1-f183.google.com with SMTP id b204sf167731pfb.11 for ; Wed, 04 Sep 2019 14:45:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567633543; cv=pass; d=google.com; s=arc-20160816; b=LzBihcddFIYAjt1rCrIsZwUnnqyzIhbmj6+osS/jk9UZpkVXCnVwJr1tevxnM3zCD+ HKthcFolHq64tI9oGR0ToknM9ojB5WgfvhjLfssGc47PJPLbY2jZM+lQgSTAV/ppjF8N hMcFNBKlbZQgrOEydVAAdfN9vGngbWbrDksM4ZkYUlj7HUSgTTeGMbW0+zHDPtLy0lxV QB2pJ7NnabTljN1jLMFT7bK/WnspxA5yB18zG0n0at1O8k1dmsFNMfkfNTaldthr2Nag fmcVQw2YSVtdZ/u39BbPwEQHxkNdtf3v4gbtqgdTf3uTrfAg+zikEX7t+2LjHCl7s0G7 TTBA== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=MtW6VYqwYCZJQjHEmP4st9+H+nVxXoPNytN7hPAlOWQ=; b=gq2nJDoNSsggFPsZtzypTS738p6Fd9R4InVPw0qE89RusETBPnnZpDSO0dX9Xv4H+z Vd7CR7My/tiuXbXa9yMKt9wx6xduhCcRBJ4zIK89lKp5UG8mySS/+EcK8pwoF0K0oTP5 bjwQ4XaioZ+q9fgd1lFufiN1sEyFpc4GDpujws6HhPFiYS7dZASN9pN7aZgd69f34/kC Hb3/Ak45NKjMxAt3ANrjE5uxk4RTw7Xu3odER+thGkRKCMj41RVxocfvSyOMhAq7zGCi TZJQWrb4WBoJ0NdUgFGlDNwMwysDbctAucO1Kob5nYgRLyAJ4lKpJHymOiT8pTgFqEp3 xNrg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ehVr2OBA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=MtW6VYqwYCZJQjHEmP4st9+H+nVxXoPNytN7hPAlOWQ=; b=cqlZvubno7ukoFTv+SmYFqoSQymv9TX263sFRGvy0JBb4ZGeaZKIcxaflplNK0D0bD P1T0Zao2/lkh1kCt6wrcm12oqk8Aji1A9t+zTd/gUNf42guEwEWc2w1Vt3Qtoo39nzL6 WYfahhIoNC+lTR3sqYvF4Kia95ZmIrqBs79heJn/zI41L/jHzLcIJHY1CafL0W0DjiVS Wf70c4dcLKXgvckhgOpyDveK9uSBOd///eh4jO80foq0LyVEOxli/KEhlOyTx/N7HlH9 uPSk7L+hFC9Tb2U9Gxnpq0lh3X/puOOL/7UzDkuCvxvGJc0v08plHtBfFOlYNlQlyfdT HUow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=MtW6VYqwYCZJQjHEmP4st9+H+nVxXoPNytN7hPAlOWQ=; b=D9MZQWIr4hNsdyTWl1PSrxXq/hUGktbIj9v4i90BQLeNArHpRQE7ZSjWth/m0IpbqS rw2nLDNr+pzzGe0Kc4OG/tp26J0zxsSkXm4RflRoHfAUtbZVpHgIvsgxY1SDm0f3HOGS 4ZHkgy6iH6Vm697cENcA1cORBWZ2T9osw/7zBFIneokLpjZC7N8+ZtnK1tb8ihxkar4A DuxQNNaOPN/NDh/dTQ2d6WCMhSjzIuz4MaKO+AwuKHIZWTVOQPfyfYWtFTpUVUDFg2Yd 8UUIejp5wI2ByZ+XId5khSJkttvq/VqGcEGdaFza/sFTbG0LkpyvM/45bugNN34BTUAL Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUSPB03AJjFGXQ0zX+jCRBisIxMPM1PL2Rw5EN/Kk+wtN9038HB SlQ5OdVp9PqAidNMkUXYEsM= X-Google-Smtp-Source: APXvYqy6BvHlNzhJka3SYborwdZQuy4i9/wIgSw8/1k1/2GHf4b2SCHLBhgdIeefTouE9rz9fQiv/g== X-Received: by 2002:aa7:998f:: with SMTP id k15mr35039441pfh.203.1567633543745; Wed, 04 Sep 2019 14:45:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:7449:: with SMTP id e9ls6837574plt.0.gmail; Wed, 04 Sep 2019 14:45:42 -0700 (PDT) X-Received: by 2002:a17:902:6842:: with SMTP id f2mr43994565pln.39.1567633542900; Wed, 04 Sep 2019 14:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567633542; cv=none; d=google.com; s=arc-20160816; b=dZYoI+fQjtXXxLKnqn3M3zJMSM28fwh49m+73bruSNrPiOstKygq0OfgxFQw/iLvv6 SM1iRQK42byjoJi9QRwcDEuNlC3L3g2xUU034LCdLd/6n2DPIF7a6NTJBQzdTI/Lpif5 xFlcEHAn9edTq2qFwhnIqtLgJ8rrcNXs9nfPIbs1Uzn+Od+lqdG6RQKhbNPV+tMPfUo3 eSAVxZycYcfQjXDIRk2y8Qfl/sNfEEQv//AM5+8AUc3tzrr2SKMRWHU3ccE8utGfK91O EXFoBL625N+3/6yMfLm9z8Id6uDs0BeWr3uMtwNagYZjlCprvZzyx0k8oedYs4+Cxwrc tZtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=AZYOpatzxeQNKJyGy25pcnOcSeYMBFCoroRmGltADH8=; b=L1WGBALdC+Ruh+l0z6W7KBaet8yEAncf+byCLIVvmzHLwx24ybnn+MTp1UY+87oxX6 HjzIl5OJdmJ2fiTCaGg4gLydiFWvtVzFbSka1bbaHzJzBCYFAju4hPtJ9OP0mQHUz3S5 VzRlOxkeroe9rwc1MXaIeQ3oSTguWObdzVmHB+2DqvodkeHvDY/N3GLIQz+VbvecBuii QgNaj6EkvH+rtppwbxePeDe0QhRdr8jJnRKZyRyh3Vea4ksJDIaxYNg4A1yFqDvSt77i haIQpFoau13610sOsyMGIe/bTBdDeLMASxEuKI5JDLinSGRMmt+dDCnwK7FeFrxhFQ57 KERA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ehVr2OBA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com. [2607:f8b0:4864:20::533]) by gmr-mx.google.com with ESMTPS id x2si28359pfq.3.2019.09.04.14.45.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Sep 2019 14:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) client-ip=2607:f8b0:4864:20::533; Original-Received: by mail-pg1-x533.google.com with SMTP id n190so167706pgn.0 for ; Wed, 04 Sep 2019 14:45:42 -0700 (PDT) X-Received: by 2002:a65:52ca:: with SMTP id z10mr241331pgp.424.1567633542310; Wed, 04 Sep 2019 14:45:42 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id e129sm19672pfa.92.2019.09.04.14.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 14:45:41 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id B95AEA16D; Wed, 4 Sep 2019 17:45:30 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ehVr2OBA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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.org gmane.text.pandoc:23381 Archived-At: Interesting, this seems to work differently in asciidoc and asciidoctor (in asciidoctor you get the expected output). Here's the commit that added this: commit 98ee6ca289ad7117b7336a57bcfc6f4b54463f4e Author: John MacFarlane Date: Sun May 5 21:57:30 2019 -0700 Asciidoc writer: use `` `+...+` `` form for inline code. =20 The old `` `a__b__c` `` yields emphasis inside code in asciidoc. To get a pure literal code span, use `` `+a__b__c+` ``. Looks like this behavior is asciidoctor-specific. Could you put an issue on our tracker so we won't forget to fix this? It should be easy enough to make the `+`s conditional on the asciidoctor extension. PS. I get annoyed when I see online forums talking about how asciidoc is superior to markdown because there aren't N+1 versions! Miguel Gualdr=C3=B3n writes: > Hi, > > I've searched the archive for this, but wasn't able to find it. > > I'm using pandoc 2.7.3 under Mac OS X to convert docs from Markdown to > Asciidoc. Some of these may later be converted to HTML and/or PDF. > > The issue is that when converting inline code, pandoc surrounds the text > with back-ticks AND plus signs, but both are not required by asciidoc, on= ly > one or the other. So the question is: how do I get the plus signs to go > away? > > Here's a trivial example: > > echo 'Normal text `this is code`' |pandoc - -o- -f markdown -t asciidoc > Normal text `+this is code+` > > > If this output is then converted to HTML, the plus signs are rendered as = if > they had been part of the original text: > > echo 'Normal text `this is code`' |pandoc - -o- -f markdown -t asciidoc > |asciidoc -o- -b xhtml11 - >
>

Normal text +this is code+

>
> > > (I've omitted some of the HTML output for clarity.) > > Thanks in advance for any help. > > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/CACu41f-KRNwFta3a%3DiiOvG8-RH7LUSWdKT4k5P-BTR7M%2Bks8hw%40= mail.gmail.com. --=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/yh480kr24vn3b9.fsf%40johnmacfarlane.net.