From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27251 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: [dokuwiki > ]How to prevent back quotes from being escaped? Date: Thu, 17 Dec 2020 09:00:50 -0800 Message-ID: References: <878s9wn71f.fsf@example.com> 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: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23352"; mail-complaints-to="usenet@ciao.gmane.io" To: Denis =?utf-8?Q?Bitouz=C3=A9?= , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBUM5537AKGQEG4QG67I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 17 18:01:13 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f56.google.com ([209.85.219.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kpweO-0005uK-Qz for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Dec 2020 18:01:12 +0100 Original-Received: by mail-qv1-f56.google.com with SMTP id f7sf18190691qvr.4 for ; Thu, 17 Dec 2020 09:01:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608224472; cv=pass; d=google.com; s=arc-20160816; b=EmeKRnpaz9bmjVVy83u1exHUf7+LiSsj0eRPTQ315OmtO3TEzHEtx4yYrV8uVoepQt 8Ye4q46h7BOv3VGuOStWwQm1Yn/gcIcuvpN8QqLVrS45xmICYoKJelPVscpmbaiGlJx2 mnoV3cB9erYCw9gvFF9XYOJu2/oGbV8V1eyWcxc1LYpXg1ZNQgVWdqJgnoKdfzKwDbr1 DwDDBxivdk9kVOLupXAZDRYxDitYCrOhvnevnuRcX9lhNmMvq3UwW31fKq2JA1BMqqxS LKIk1lNahMNyQqFkQUjWWx56/2dP3A8DLdWDizEgzRKfK5LEwV4ukOAzcBp5FoYB2S5a 8Uug== 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=4vnWeShpxi95aMu32LZXiyvyKxr1d0HlW4BoAJUXVII=; b=tjJfoJKivk+RNNFW6AoSLEF+bFUu6jsHeWacogOiwh/8aUFNrJeMYDu6jxen1h0ef8 FEa6nORpZA6oRDSX5SsX1DvYkqcX9NuJ8HKL+KvLO7c1CSBJw4V3opZULktPS5I6aopD r4JKuuOPQ5G+jxICX6N5x48DKov2WAJEU6tJsV7+if3xi7pmMasZe6+HC9X6/ysT7uhQ jX6pV/TVQVtPKKwoBwJ3iu1yRxiW4DuXwVY+H51lKvA1yv5f/Pqb9fTS0kKtooDy4a7/ ndLKAPV70uESw7AAEvdtGG8pq9Wo8uUWguGMrycUkuspPq1zNy/T8VDeD+5McHOECz5Z 30bA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=QWi+x1nW; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 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=4vnWeShpxi95aMu32LZXiyvyKxr1d0HlW4BoAJUXVII=; b=PXzGOel0aM1L44tr72EvWJto11O/HyEe0nsDWpg7ig1oNDMRqZXE5BPbrZJPkH7giT w6kBaMdKPtuPJHli3DtGCHOuHZnOsOedh+CYm5wtlcFuzJ+aZvVqZikemMEB6ulP/G/z 4cUbgry+mDeDipA50m19jw4iQWGYxpUDjRHChE/Qw4tW/9SPUVrMipqP3XlzMDA9OBAc JwrNwlVqTB9XoRCD0rVbB1kP98Xpowu0WjTzDSY+6V5gK2YPRxek1acXwQN8C8+wGSQg BxkVPR8SzAWOAdUnVcGMkcnd5gjBZ7ElCvr7lihXA0Elofly8OjbciQB2DoK+seUWtSb DJ9Q== 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=4vnWeShpxi95aMu32LZXiyvyKxr1d0HlW4BoAJUXVII=; b=feasr1ioUcQPKcxz+zpAAQheVz++YIwInKzS8Y6jW5Lih86P6cCL5pgx6jxIya1lNe CMWAvMKViWWBQiXc8C90bNMNs3QK0FASxKa07hCOFQJF1NzDZvXDaD3gWQfJl9chAF0S Np3crmvFlyI3nROZtEguh4NX2dPRfnvhyNNVxRkBKEMIx7SqaM/nsCz8S7POYBsXUAiG wEGNcQ+1kOrdelGKMuCAOhwib37dJu72jSRjgoK2scW0gHHZD8KdvgAHmETZN7/kI9rA D4OeCraY0AcRcajdEJKnV8NTBXAdzp+dyZjoLqlMWL0Kx8m94s+ZbpxLKXY6ATtKJPxg Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530UeoYkAKOe3tFm6d5eHNYz98+40avN7EITb7roqKJ5TQ0+CSQG bLa9FVfGwZD/N2pH5UgFqDQ= X-Google-Smtp-Source: ABdhPJxSSj9A4iSPyHsYismvvjhUnUW3NqVKW3O4Dx/ZbHS7mXGtL3EFym3yynJFL621uGcdphLGFQ== X-Received: by 2002:a37:d2c7:: with SMTP id f190mr204312qkj.128.1608224471927; Thu, 17 Dec 2020 09:01:11 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a37:9a4f:: with SMTP id c76ls13163601qke.8.gmail; Thu, 17 Dec 2020 09:01:04 -0800 (PST) X-Received: by 2002:a05:620a:140c:: with SMTP id d12mr177800qkj.340.1608224463924; Thu, 17 Dec 2020 09:01:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608224463; cv=none; d=google.com; s=arc-20160816; b=ZpkNFfBJBleJYthEEXjToz2GRUOg1jb3tCXyHLV6hX9Dvf3vXp17tlth1N0eW4EjN3 DNyx01Ax4ZwMd34nPJUbfwoQsXutgDQ7fN4KG8dGfEN15u276zLU7yZXg9/4WFQtZANo /axQd5e+IQb2xQiLyrV6zdfvelHBrhDm6Q2P0x601ueJ7+fvZ4FQztHgpjhB8OTiUcSh cf8II6O6t2WXLa+lPingNZ0aYcNF6n1xkJcFy7jH60K3CcHPQmd+gQkSwayxBxCchQkJ veLlCKGGqYzFzvoNETeWdGo2GEkbV8G/43iBLG9I2Nqjoa5NmJmiXKAcVTAIlX+5T22t vGwA== 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=jaIbHeZ9BoUR2/jD8SmrSP/WsdHAHWGEXh8F6wa029M=; b=fFmnF8+AULnsdKOklSTv8ve5IJ4L67kPnAaKBvEtMG+sKKQT/Gzemo1OqWonaH3oV1 RzCpm6Oxpx36UBgU4jp3/82KDT43ujg4ZN0JHT4Bhys4CYURkkd2kr7KhBKJiOTOuPOX GaM/iWYWW2lM+ZNF/kNVrEhPzdi9Rn0GZoHwiToTZTwQkaTmGcWb4OJBmV+xRCW7wqrg /6ER4SvWQJjjxXmgBgTIrHrBVMtlUwtfd+P1Yo1MF+h8lFCGC6xeHlf3KBNj/cDCM0o+ COT00TvfCe/VZ5wc6wQ0l2c/m7RnazbiTjNOiUEUV0T0BBxvmzCSpeYWaYTept817NXi keFw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=QWi+x1nW; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com. [2607:f8b0:4864:20::634]) by gmr-mx.google.com with ESMTPS id c198si496165qkg.2.2020.12.17.09.01.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Dec 2020 09:01:03 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) client-ip=2607:f8b0:4864:20::634; Original-Received: by mail-pl1-x634.google.com with SMTP id r4so15457953pls.11 for ; Thu, 17 Dec 2020 09:01:03 -0800 (PST) X-Received: by 2002:a17:902:c195:b029:db:c725:2522 with SMTP id d21-20020a170902c195b02900dbc7252522mr208918pld.83.1608224462867; Thu, 17 Dec 2020 09:01:02 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t22sm5539696pgm.18.2020.12.17.09.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 09:01:01 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 76F6FA256; Thu, 17 Dec 2020 12:00:50 -0500 (EST) In-Reply-To: <878s9wn71f.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> 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=QWi+x1nW; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 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.io gmane.text.pandoc:27251 Archived-At: Denis Bitouz=C3=A9 writes: > Hi, > > running: > > --8<---------------cut here---------------start------------->8--- > pandoc -f dokuwiki -t native <<< :foo:\`bar\` > --8<---------------cut here---------------end--------------->8--- > > returns: > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 [Para [Str ":foo:`bar`"]] > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > So far, so good. > > Now, running: > > --8<---------------cut here---------------start------------->8--- > pandoc -f dokuwiki -o tmp.rst <<< :foo:\`bar\` > more tmp.rst > --8<---------------cut here---------------end--------------->8--- > > returns: > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 :foo:`bar\` > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > Do you know: > > - why this (only the latter) back quote is escaped? > - how to prevent it from being escaped? If you have a plain string (Str), then you want it to be rendered to something that is treated the same way in RST. If it rendered as :foo:`bar` then it would have a special meaning in RST, so we escape it. If your intent is to produce raw RST, then don't use Str; use RawInline (Format "rst"). --=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/m2pn38v03h.fsf%40MacBook-Pro.hsd1.ca.comcast.net.