* spans in title / metadata blocks -> metadata read as table
@ 2021-10-27 9:11 denis.maier-NSENcxR/0n0
[not found] ` <715b35799a5144bbbd9ecd730626baa8-NSENcxR/0n0@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-10-27 9:11 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]
Hi
I have these two MWE:
```
---
title: "asdf \[[אבגד]{dir="rtl"}\]. asdf"
---
asdf
```
vs.
```
---
title: "asdf. asdf"
---
asdf
```
The second example works correctly, but pandoc won’t pick up the metadata when there is the span in the title. (The metadata will then be read as a table.)
I that a bug or intended behaviour?
Best
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/715b35799a5144bbbd9ecd730626baa8%40unibe.ch.
[-- Attachment #2: Type: text/html, Size: 3482 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: spans in title / metadata blocks -> metadata read as table
[not found] ` <715b35799a5144bbbd9ecd730626baa8-NSENcxR/0n0@public.gmane.org>
@ 2021-10-27 9:49 ` Bastien DUMONT
2021-10-27 11:50 ` AW: " denis.maier-NSENcxR/0n0
2021-10-27 16:43 ` John MacFarlane
0 siblings, 2 replies; 4+ messages in thread
From: Bastien DUMONT @ 2021-10-27 9:49 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Hi,
I raised a similar issue here: https://github.com/jgm/pandoc/issues/7152
In short: simply replacing double quotes by single quotes should solve your problem.
```
---
title: 'asdf \[[אבגד]{dir="rtl"}\]. asdf'
---
asdf
```
gives:
```
Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Str "asdf",Space,Str "[",Span ("",[],[("dir","rtl")]) [Str "\1488\1489\1490\1491"],Str "].",Space,Str "asdf"])]})
[Para [Str "asdf"]]
```
Le Wednesday 27 October 2021 à 09:11:20AM, denis.maier-NSENcxR/0n0@public.gmane.org a écrit :
> Hi
>
> I have these two MWE:
>
>
>
> ```
>
> ---
>
> title: "asdf \[[אבגד]{dir="rtl"}\]. asdf"
>
> ---
>
>
>
> asdf
>
> ```
>
>
>
> vs.
>
>
>
> ```
>
> ---
>
> title: "asdf. asdf"
>
> ---
>
>
>
> asdf
>
> ```
>
>
>
> The second example works correctly, but pandoc won’t pick up the metadata when
> there is the span in the title. (The metadata will then be read as a table.)
>
>
>
> I that a bug or intended behaviour?
>
>
>
> Best
>
> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/715b35799a5144bbbd9ecd730626baa8%40unibe.ch.
>
> References:
>
> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups.google.com/d/msgid/pandoc-discuss/715b35799a5144bbbd9ecd730626baa8%40unibe.ch?utm_medium=email&utm_source=footer
--
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/YXkgv/JhzP8y4uee%40localhost.
^ permalink raw reply [flat|nested] 4+ messages in thread
* AW: spans in title / metadata blocks -> metadata read as table
2021-10-27 9:49 ` Bastien DUMONT
@ 2021-10-27 11:50 ` denis.maier-NSENcxR/0n0
2021-10-27 16:43 ` John MacFarlane
1 sibling, 0 replies; 4+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-10-27 11:50 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Thanks! That solved it.
Best,
Denis
> -----Ursprüngliche Nachricht-----
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Im Auftrag von Bastien DUMONT
> Gesendet: Mittwoch, 27. Oktober 2021 11:50
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> Betreff: Re: spans in title / metadata blocks -> metadata read as table
>
> Hi,
>
> I raised a similar issue here: https://github.com/jgm/pandoc/issues/7152
>
> In short: simply replacing double quotes by single quotes should solve your
> problem.
>
> ```
> ---
> title: 'asdf \[[אבגד]{dir="rtl"}\]. asdf'
> ---
>
> asdf
> ```
>
> gives:
>
> ```
> Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Str "asdf",Space,Str
> "[",Span ("",[],[("dir","rtl")]) [Str "\1488\1489\1490\1491"],Str "].",Space,Str
> "asdf"])]}) [Para [Str "asdf"]] ```
>
> Le Wednesday 27 October 2021 à 09:11:20AM, denis.maier-NSENcxR/0n0@public.gmane.org a écrit :
> > Hi
> >
> > I have these two MWE:
> >
> >
> >
> > ```
> >
> > ---
> >
> > title: "asdf \[[אבגד]{dir="rtl"}\]. asdf"
> >
> > ---
> >
> >
> >
> > asdf
> >
> > ```
> >
> >
> >
> > vs.
> >
> >
> >
> > ```
> >
> > ---
> >
> > title: "asdf. asdf"
> >
> > ---
> >
> >
> >
> > asdf
> >
> > ```
> >
> >
> >
> > The second example works correctly, but pandoc won’t pick up the
> > metadata when there is the span in the title. (The metadata will then
> > be read as a table.)
> >
> >
> >
> > I that a bug or intended behaviour?
> >
> >
> >
> > Best
> >
> > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit
> > [2]https://groups.google.com/d/msgid/
> > pandoc-discuss/715b35799a5144bbbd9ecd730626baa8%40unibe.ch.
> >
> > References:
> >
> > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [2]
> > https://groups.google.com/d/msgid/pandoc-discuss/715b35799a5144bbbd9ec
> > d730626baa8%40unibe.ch?utm_medium=email&utm_source=footer
>
> --
> 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/YXkgv/JhzP8y4uee%40localhost.
--
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/ffa07e03d0cf4d1689f5e56fb3d6c34b%40unibe.ch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: spans in title / metadata blocks -> metadata read as table
2021-10-27 9:49 ` Bastien DUMONT
2021-10-27 11:50 ` AW: " denis.maier-NSENcxR/0n0
@ 2021-10-27 16:43 ` John MacFarlane
1 sibling, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2021-10-27 16:43 UTC (permalink / raw)
To: Bastien DUMONT, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Yes, yaml escaping rules are fun!
By the way, I have a PR to switch from HsYAML to yaml for
YAML parsing, and with the version of pandoc that uses the yaml
library, this input actually raises an error instead of producing
a table:
YAML parse exception at line 1, column 13,
while parsing a quoted scalar:
found unknown escape character
That's better, I think1
Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> writes:
> Hi,
>
> I raised a similar issue here: https://github.com/jgm/pandoc/issues/7152
>
> In short: simply replacing double quotes by single quotes should solve your problem.
>
> ```
> ---
> title: 'asdf \[[אבגד]{dir="rtl"}\]. asdf'
> ---
>
> asdf
> ```
>
> gives:
>
> ```
> Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Str "asdf",Space,Str "[",Span ("",[],[("dir","rtl")]) [Str "\1488\1489\1490\1491"],Str "].",Space,Str "asdf"])]})
> [Para [Str "asdf"]]
> ```
>
> Le Wednesday 27 October 2021 à 09:11:20AM, denis.maier-NSENcxR/0n0@public.gmane.org a écrit :
>> Hi
>>
>> I have these two MWE:
>>
>>
>>
>> ```
>>
>> ---
>>
>> title: "asdf \[[אבגד]{dir="rtl"}\]. asdf"
>>
>> ---
>>
>>
>>
>> asdf
>>
>> ```
>>
>>
>>
>> vs.
>>
>>
>>
>> ```
>>
>> ---
>>
>> title: "asdf. asdf"
>>
>> ---
>>
>>
>>
>> asdf
>>
>> ```
>>
>>
>>
>> The second example works correctly, but pandoc won’t pick up the metadata when
>> there is the span in the title. (The metadata will then be read as a table.)
>>
>>
>>
>> I that a bug or intended behaviour?
>>
>>
>>
>> Best
>>
>> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
>> pandoc-discuss/715b35799a5144bbbd9ecd730626baa8%40unibe.ch.
>>
>> References:
>>
>> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> [2] https://groups.google.com/d/msgid/pandoc-discuss/715b35799a5144bbbd9ecd730626baa8%40unibe.ch?utm_medium=email&utm_source=footer
>
> --
> 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/YXkgv/JhzP8y4uee%40localhost.
--
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/m2bl3a5sgi.fsf%40Johns-Air.hsd1.ca.comcast.net.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-27 16:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 9:11 spans in title / metadata blocks -> metadata read as table denis.maier-NSENcxR/0n0
[not found] ` <715b35799a5144bbbd9ecd730626baa8-NSENcxR/0n0@public.gmane.org>
2021-10-27 9:49 ` Bastien DUMONT
2021-10-27 11:50 ` AW: " denis.maier-NSENcxR/0n0
2021-10-27 16:43 ` 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).