From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23380 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Miguel_Gualdr=C3=B3n?= Newsgroups: gmane.text.pandoc Subject: md->asciidoc inline code has plus signs Date: Wed, 4 Sep 2019 16:22:38 -0500 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000093f68a0591c0ce03" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="210890"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDOMLPVG64CBBKWWYDVQKGQENWWIRIQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 04 23:22:52 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qt1-f186.google.com ([209.85.160.186]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i5cjs-000sj1-8X for gtp-pandoc-discuss@m.gmane.org; Wed, 04 Sep 2019 23:22:52 +0200 Original-Received: by mail-qt1-f186.google.com with SMTP id z4sf167507qts.0 for ; Wed, 04 Sep 2019 14:22:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567632170; cv=pass; d=google.com; s=arc-20160816; b=O53kt1JALIXEuJCFkdy9PBLo3Fat9Ef6e5RUsSwuBdo85v8mK7C6scmtJx52vQTcYb /z97Mjli+74WjhQAedHmaAcOwkoOaikn7iSRbv/Q5tEmhgxzl8FNYDlqlxUamSzMR1yt t+gq5e7I6iK9IsXaGiEBxsT237Tt7cZOME0xSe6pAssfyUmkU3Z+qt77UK1vngOsKmid WUk1nU5A1wccCuqEhY4U2xcIeNXQPBJIzMOQWboNPWYarPxovGK7gKe2juY4XLRP070z lR3Ow9yBDXGBKz4a0piOIYxZdZ7W2ETDq0tXwDEOGcBHbamBhMCwA/7oRmD/dilIBXpQ ROpA== 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:mime-version:sender:dkim-signature; bh=HGJ0aT53DeYudmMk/T9Ew29UQwt4kY38Z63ITtyf620=; b=ndklwg53ZbVOpxlYfHPJbfRge4yPbpb49Ylzht23B0iSGM/CZ/N6yjaI8WX96f2X/V 9cOal2wJ9FhVrIqbhdg+KZ1/LzSxKZSuRGdXRPJlnzHQSHCachUZVgfmj8jALaJGIp0g wvTa4OlhX7KlmGJu0ot/yBw7K+2qxYSvjNbec4uwY2uEBs0VT5Z2/bECbz2jyXF9Kj2E 6guxd1jF+7x4avefpfo+hWUx7SpKkN0gfbCQ3kuuFkz6iVKk8iTcKUfZAtJdM8GumYOh 7//PLTS8ithRfqlpMu4/dyAOXVOTsJO2LoCg7QWVozn3VkA6YBrOthuoO+aWweeZRV6e YVHw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gualdron-com.20150623.gappssmtp.com header.s=20150623 header.b=cOPxpJEq; spf=pass (google.com: domain of miguel.gualdron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22f as permitted sender) smtp.mailfrom=miguel.gualdron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:date:message-id:subject:to :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=HGJ0aT53DeYudmMk/T9Ew29UQwt4kY38Z63ITtyf620=; b=DAsDJofLvo64Ge4AYZNCH5FEfpBoVf9xUBuHOtXc334I+R44TeHVgoDx9w7rlKsCAR QqtPfzbEV4/FbTfUxdcvr71yZf+WyflVVR9tMaUegMyAcu4VfQfH2p7GkI5CROMMqalu 7Kukh6UUNcxHsDyefJhiyKB1+deZ+ZklHzGxqyeds2SGLqv+hfsKarKO184UBqZOXZt/ I83Lj2pDErtJnigmvWx25w1KhZUuiRjyAxk+v00Co2/cWl0X3nDO2YW73nKX7yrqTY6n pOf6l6J1uPiJi+sDnUF3ngi2N8n2JG4RA17HNf6+cx+dyCNgalTMr5wSrLyuh5KdCIIF Qqpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:date:message-id:subject :to: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=HGJ0aT53DeYudmMk/T9Ew29UQwt4kY38Z63ITtyf620=; b=VI9YdxmfFhrjPbpqca9YcngYNvk5C1SbGUkvf6ncHnqkm1ZvRUFF8sG0j/Bh2DdbLN 6Dq4DvaMrpOUeqKzkqwfy5lbfrjKQWpH3Dbsy/7egRWNvbLyeDt/B18Zyn+2I85gCCQm f1rICy00XcnSmwwQEtsBJrotPhZIci2aCZsFuV+7Dwe7I43rLQM2MDPXEtNaONEC4cId G8v689wT9QoqShMveDLyBrsVLAXB4t4t0q7dDBgnFOXhAhcnfU9B8aRD5YEJ8m6AeiWr v4TEWLVjaf4w+xNUnSyGvwlk0JhxW0i5PkuMfUI+6l12DtEhre50QjOsgXt+MROc8/lO F2yw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVpLjd7d8XemWW7XfraWndfO1r2Mb90ut8B051B97aS9Hx3otzX 6aMY+zhv2koanbM7C+LvbUk= X-Google-Smtp-Source: APXvYqwYAc1psX+MNwmlteeHzY1EPl7eYZ4GWtVbsixyz7oj2WDGCicE4UGVgCECzLljKF38iuJP5w== X-Received: by 2002:a37:a902:: with SMTP id s2mr19791854qke.239.1567632170619; Wed, 04 Sep 2019 14:22:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aed:3161:: with SMTP id 88ls52151qtg.7.gmail; Wed, 04 Sep 2019 14:22:49 -0700 (PDT) X-Received: by 2002:ac8:6b05:: with SMTP id w5mr194770qts.136.1567632169930; Wed, 04 Sep 2019 14:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632169; cv=none; d=google.com; s=arc-20160816; b=cf+xcJG1chN0nSZEkZk5SXe4Cds5c+52b8DGzagIkOPutKn/aY/rMlQf17apTHVeAV 6KvzL32LZjHnJEDpIyHScVFdZBQ/4ufIDSggiSp7RjeMYyTb++GwJn5eKAjHv0I7Y7Ie ZwqlNw/O5a3XN570lgeU1pMh02HqwIzgkfEo75/USRFBn5IAl5SAboT3Dlp27JbrxVa6 mESNCtAlXPKZOlCnOtnuVG6HkFZKWW3ThrECtKtm7ssJgJ1nv/o98oVijbeufGVwseRC gw6XO/7rzDI15n16jgM/uNMKbfxfsRFpYR4z/JLa48yGGnAqkoSh8KMhVxoOGMjibaIk uSrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=4yNriUgnKiKfial1fX02qxe8DyDMP2Fpj+wV6Fgst6g=; b=cedvC1LkSw4uXL2xrZQxtaJOjKI8HiutHIwETGgmFkcYEDLpkJpKGY/O3FlmZdtSyo dHlcNgexyKRXKirEtPMDMFE3tNadG61UBRoccRhOiFaPJ3lmz4r3Oyy0jtbHZZOQnYoQ dbzL/rGjYqh/f4Xc8cWgwLL2bRJyaHZvpwq6jjUsYFEziDKZbpwfSw+MAcsIlciX9BS/ ymYvAKzSE3xq12YeNbE8Ut+5vx9wcTNzk7A1he7GSUCUpWHNRy8xqzHR7QDBdrL3GJjU 32bkvCkcyW25MkyhtRJ7mUzGYCUpWStQqWjyRVUdxQFSMxz6g2LYDTheE6efIP7rv/PH wxZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gualdron-com.20150623.gappssmtp.com header.s=20150623 header.b=cOPxpJEq; spf=pass (google.com: domain of miguel.gualdron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22f as permitted sender) smtp.mailfrom=miguel.gualdron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com. [2607:f8b0:4864:20::22f]) by gmr-mx.google.com with ESMTPS id k8si14446qkg.7.2019.09.04.14.22.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Sep 2019 14:22:49 -0700 (PDT) Received-SPF: pass (google.com: domain of miguel.gualdron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22f as permitted sender) client-ip=2607:f8b0:4864:20::22f; Original-Received: by mail-oi1-x22f.google.com with SMTP id v12so17156399oic.12 for ; Wed, 04 Sep 2019 14:22:49 -0700 (PDT) X-Received: by 2002:aca:ecd3:: with SMTP id k202mr118266oih.64.1567632169103; Wed, 04 Sep 2019 14:22:49 -0700 (PDT) X-Original-Sender: dev-A7JrOCSl3gJWk0Htik3J/w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gualdron-com.20150623.gappssmtp.com header.s=20150623 header.b=cOPxpJEq; spf=pass (google.com: domain of miguel.gualdron-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22f as permitted sender) smtp.mailfrom=miguel.gualdron-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.org gmane.text.pandoc:23380 Archived-At: --00000000000093f68a0591c0ce03 Content-Type: text/plain; charset="UTF-8" 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, only 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. -- 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/CACu41f-KRNwFta3a%3DiiOvG8-RH7LUSWdKT4k5P-BTR7M%2Bks8hw%40mail.gmail.com. --00000000000093f68a0591c0ce03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I've searched the archive for t= his, 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.=C2= =A0 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 ascii= doc, only one or the other.=C2=A0 So the question is:=C2=A0 how do I get th= e plus signs to go away?

Here's a trivial exam= ple:

echo 'Normal text `th= is is code`' |pandoc - -o- -f markdown -t asciidoc
Normal text `+this is code+`

If this output is then converted to HTML, the plus sig= ns 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 -
<div id=3D"content">=
<div class=3D"paragraph"&g= t;<p>Normal text <code>+this is code+</code></p><= ;/div>
</div>

(I've omitted some of the HTML outpu= t for clarity.)

Thanks in advance for any help.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CACu41f-KRNwFta3a%3DiiOvG8-RH7LUSWdKT= 4k5P-BTR7M%2Bks8hw%40mail.gmail.com.
--00000000000093f68a0591c0ce03--