public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Escaping (was: Re: Missing bibliography)
       [not found] ` <CADAJKhAxPoV+uyoJjynq_JbqZ+hccNcjiEcJXRpKb6Ruu8nZew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-08-11 10:57   ` Melroch
       [not found]     ` <CADAJKhDoN4q1oXDWJzPX2KXvjVBakfEccWnLx-NM+w0A7KGhrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Melroch @ 2017-08-11 10:57 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2758 bytes --]

JGM wrote:
Perhaps pandoc should not allow reference link definitions
that start with `@`, since these conflict with citations?
Anyone have thoughts about this?  Someone should probably
put an issue on the bug tracker for this.
______________

That seems reasonable but please note that anything which contains literal
square brackets or asterisks has to be escaped anyway, so more or less
escaping will be required for many of us. Admittedly historical linguistics
and comparative philology (my onetime field, which I still interact with to
some extent) use more literal square brackets and asterisks than most, but
maybe the most reasonable solution would be section in the manual which
lists common cases where escaping is required.

Den 6 aug 2017 18:03 skrev "John MacFarlane" <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:

Thanks (and apologies if I missed the files before).

Simple repro here:

```
hi[^fn3]

[^fn3]: [@Alhazen1572-qk, V.9]: "competentius est et rationabilius, ut
appareat supra perpendiculum, quam extra eam."
```

This yields an empty footnote.  Why?  Because the footnote
contains:

```
[@Alhazen1572-qk, V.9]: "competentius est et rationabilius, ut appareat
supra perpendiculum, quam extra eam."
```

which pandoc is parsing as a reference link definition!

Perhaps pandoc should not allow reference link definitions
that start with `@`, since these conflict with citations?
Anyone have thoughts about this?  Someone should probably
put an issue on the bug tracker for this.

In the mean time, a workaround is to backslash-escape the
colon:

   [@Alhazen1572-qk, V.9]\: "competentius...



-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/ms
gid/pandoc-discuss/20170806160229.GA79285%40Johns-MBP.

For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDoN4q1oXDWJzPX2KXvjVBakfEccWnLx-NM%2Bw0A7KGhrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 4699 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Escaping (was: Re: Missing bibliography)
       [not found]     ` <CADAJKhDoN4q1oXDWJzPX2KXvjVBakfEccWnLx-NM+w0A7KGhrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-08-12  6:30       ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2017-08-12  6:30 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Melroch [Aug 11 17 12:57 ]:
>   JGM wrote:
>   Perhaps pandoc should not allow reference link definitions
>   that start with `@`, since these conflict with citations?

I've already made that change.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-12  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CADAJKhAxPoV+uyoJjynq_JbqZ+hccNcjiEcJXRpKb6Ruu8nZew@mail.gmail.com>
     [not found] ` <CADAJKhAxPoV+uyoJjynq_JbqZ+hccNcjiEcJXRpKb6Ruu8nZew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-11 10:57   ` Escaping (was: Re: Missing bibliography) Melroch
     [not found]     ` <CADAJKhDoN4q1oXDWJzPX2KXvjVBakfEccWnLx-NM+w0A7KGhrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12  6:30       ` 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).