* [dokuwiki > ]How to prevent back quotes from being escaped?
@ 2020-12-17 8:58 Denis Bitouzé
[not found] ` <878s9wn71f.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Denis Bitouzé @ 2020-12-17 8:58 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Hi,
running:
--8<---------------cut here---------------start------------->8---
pandoc -f dokuwiki -t native <<< :foo:\`bar\`
--8<---------------cut here---------------end--------------->8---
returns:
┌────
│ [Para [Str ":foo:`bar`"]]
└────
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:
┌────
│ :foo:`bar\`
└────
Do you know:
- why this (only the latter) back quote is escaped?
- how to prevent it from being escaped?
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/878s9wn71f.fsf%40example.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dokuwiki > ]How to prevent back quotes from being escaped?
[not found] ` <878s9wn71f.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
@ 2020-12-17 17:00 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2020-12-17 17:00 UTC (permalink / raw)
To: Denis Bitouzé, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Denis Bitouzé <denis.bitouze-PToOLB6qFnLddoiwg0DPyg@public.gmane.org> writes:
> Hi,
>
> running:
>
> --8<---------------cut here---------------start------------->8---
> pandoc -f dokuwiki -t native <<< :foo:\`bar\`
> --8<---------------cut here---------------end--------------->8---
>
> returns:
>
> ┌────
> │ [Para [Str ":foo:`bar`"]]
> └────
>
> 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:
>
> ┌────
> │ :foo:`bar\`
> └────
>
> 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").
--
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/m2pn38v03h.fsf%40MacBook-Pro.hsd1.ca.comcast.net.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-17 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 8:58 [dokuwiki > ]How to prevent back quotes from being escaped? Denis Bitouzé
[not found] ` <878s9wn71f.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2020-12-17 17:00 ` 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).