* Backslashed back quote
@ 2022-10-02 9:49 Denis Bitouzé
[not found] ` <878rlysggr.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Denis Bitouzé @ 2022-10-02 9:49 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Hi,
is there any reason for the last back quote below to be backslashed?
┌────
│ $ pandoc -f dokuwiki -t rst <<< ':foo:`bar <baz>`'
│ :foo:`bar <baz>\`
└────
Thanks.
--
Denis
--
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/878rlysggr.fsf%40example.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Backslashed back quote
[not found] ` <878rlysggr.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
@ 2022-10-02 13:26 ` Denis Bitouzé
[not found] ` <874jwms6e7.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Denis Bitouzé @ 2022-10-02 13:26 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Le 02/10/22 à 11h49, Denis Bitouzé a écrit :
> is there any reason for the last back quote below to be backslashed?
>
> ┌────
> │ $ pandoc -f dokuwiki -t rst <<< ':foo:`bar <baz>`'
> │ :foo:`bar <baz>\`
> └────
Cleaner examples:
┌────
│ $ pandoc -f dokuwiki -t rst <<< 'a`b'
│ a`b
│ $ pandoc -f dokuwiki -t rst <<< 'a`'
│ a\`
│ $ pandoc -f dokuwiki -t rst <<< 'a` '
│ a\`
│ $ pandoc -f dokuwiki -t rst <<< 'a` b'
│ a\` b
└────
The back quotes seem to not be escaped (backslashed) if and only if they
are followed by a non empty string.
--
Denis
--
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/874jwms6e7.fsf%40example.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Backslashed back quote
[not found] ` <874jwms6e7.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
@ 2022-10-02 19:28 ` John MacFarlane
0 siblings, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2022-10-02 19:28 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Backtick can have a special meaning in RST, so pandoc escapes it in many cases.
It uses a simple heuristic to avoid escaping backticks that clearly can't have
the special meaning (word-internal).
> On Oct 2, 2022, at 6:26 AM, Denis Bitouzé <denis.bitouze@univ-littoral.fr> wrote:
>
> Le 02/10/22 à 11h49, Denis Bitouzé a écrit :
>
>> is there any reason for the last back quote below to be backslashed?
>>
>> ┌────
>> │ $ pandoc -f dokuwiki -t rst <<< ':foo:`bar <baz>`'
>> │ :foo:`bar <baz>\`
>> └────
>
> Cleaner examples:
>
> ┌────
> │ $ pandoc -f dokuwiki -t rst <<< 'a`b'
> │ a`b
> │ $ pandoc -f dokuwiki -t rst <<< 'a`'
> │ a\`
> │ $ pandoc -f dokuwiki -t rst <<< 'a` '
> │ a\`
> │ $ pandoc -f dokuwiki -t rst <<< 'a` b'
> │ a\` b
> └────
>
> The back quotes seem to not be escaped (backslashed) if and only if they
> are followed by a non empty string.
> --
> Denis
>
> --
> 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/874jwms6e7.fsf%40example.com.
--
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/4FB6A2E3-4294-4517-BF12-793E0EEF6291%40gmail.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-02 19:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-02 9:49 Backslashed back quote Denis Bitouzé
[not found] ` <878rlysggr.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2022-10-02 13:26 ` Denis Bitouzé
[not found] ` <874jwms6e7.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2022-10-02 19:28 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).