* Bracket span and superscript syntax
@ 2022-04-24 7:26 Lyndon Drake
[not found] ` <270704e2-122c-45ff-a1b1-82bd7c19b016n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Lyndon Drake @ 2022-04-24 7:26 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 764 bytes --]
Hi,
If I try to do superscripts inside a bracketed span, it doesn't get
recognised as a superscript:
[^20^]{lang=en-GB}
But if I do it the other way around it seems to work:
^[20]{lang=en-GB}^
I feel like the first example is still valid though and wondered if it is
intentionally not recognised because it's ambiguous in some way?
Best,
Lyndon
--
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/270704e2-122c-45ff-a1b1-82bd7c19b016n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1201 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bracket span and superscript syntax
[not found] ` <270704e2-122c-45ff-a1b1-82bd7c19b016n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-04-24 9:06 ` Albert Krewinkel
[not found] ` <875ymyone7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Albert Krewinkel @ 2022-04-24 9:06 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Lyndon Drake <isenguard-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> If I try to do superscripts inside a bracketed span, it doesn't get
> recognised as a superscript:
>
> [^20^]{lang=en-GB}
>
> But if I do it the other way around it seems to work:
>
> ^[20]{lang=en-GB}^
>
> I feel like the first example is still valid though and wondered if it
> is intentionally not recognised because it's ambiguous in some way?
This happens because `[^20^]` can also define a footnote:
```
text[^20^]
[^20^]: my footnote
```
Note that the commonmark_x reader gives the expected result. Add a space
after the opening bracket to get the same behavior in pandoc's Markdown.
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bracket span and superscript syntax
[not found] ` <875ymyone7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-04-24 19:36 ` John MacFarlane
2022-04-25 3:35 ` Lyndon Drake
1 sibling, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2022-04-24 19:36 UTC (permalink / raw)
To: Albert Krewinkel, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Another approach would be to do
^[20]^
[20]: link
Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> writes:
> Lyndon Drake <isenguard-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> If I try to do superscripts inside a bracketed span, it doesn't get
>> recognised as a superscript:
>>
>> [^20^]{lang=en-GB}
>>
>> But if I do it the other way around it seems to work:
>>
>> ^[20]{lang=en-GB}^
>>
>> I feel like the first example is still valid though and wondered if it
>> is intentionally not recognised because it's ambiguous in some way?
>
> This happens because `[^20^]` can also define a footnote:
>
> ```
> text[^20^]
>
> [^20^]: my footnote
> ```
>
> Note that the commonmark_x reader gives the expected result. Add a space
> after the opening bracket to get the same behavior in pandoc's Markdown.
>
>
> --
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>
> --
> 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/875ymyone7.fsf%40zeitkraut.de.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bracket span and superscript syntax
[not found] ` <875ymyone7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-04-24 19:36 ` John MacFarlane
@ 2022-04-25 3:35 ` Lyndon Drake
1 sibling, 0 replies; 4+ messages in thread
From: Lyndon Drake @ 2022-04-25 3:35 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1414 bytes --]
Ah ok, that's a good point about the footnotes. I do wonder if the
{}afterwards might disambiguate it as a bracketed span though.
On Sunday, 24 April 2022 at 21:12:57 UTC+12 Albert Krewinkel wrote:
>
> Lyndon Drake <isen...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > If I try to do superscripts inside a bracketed span, it doesn't get
> > recognised as a superscript:
> >
> > [^20^]{lang=en-GB}
> >
> > But if I do it the other way around it seems to work:
> >
> > ^[20]{lang=en-GB}^
> >
> > I feel like the first example is still valid though and wondered if it
> > is intentionally not recognised because it's ambiguous in some way?
>
> This happens because `[^20^]` can also define a footnote:
>
> ```
> text[^20^]
>
> [^20^]: my footnote
> ```
>
> Note that the commonmark_x reader gives the expected result. Add a space
> after the opening bracket to get the same behavior in pandoc's Markdown.
>
>
> --
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>
--
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/631c4a3d-3410-4c8a-92b8-adcc5fb3c2cdn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2079 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-25 3:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24 7:26 Bracket span and superscript syntax Lyndon Drake
[not found] ` <270704e2-122c-45ff-a1b1-82bd7c19b016n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-04-24 9:06 ` Albert Krewinkel
[not found] ` <875ymyone7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-04-24 19:36 ` John MacFarlane
2022-04-25 3:35 ` Lyndon Drake
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).