* Double hyphens in headings (and a couple of other things) @ 2021-07-28 14:52 William Lupton [not found] ` <CAEe_xxh=PMkddncAi=AX_7dbTV30wAE4=Noto8kgaxK7Tc-vbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: William Lupton @ 2021-07-28 14:52 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 2658 bytes --] All, I processed the input shown below at pandoc/try (the URL is given at the bottom). Here are my comments: 1. A double hyphen in a heading is removed when calculating the id - - I tried disabling the "smart" extension, and heading-double now becomes heading----double - So I think this is because it's an en-dash, is regarded as "formatting", and is therefore removed - But is a dash really formatting? And anyway, should "smart" affect the generated id? - Note that *Dogs*?-in *my* house? results in dogs-in-my-house, whereas the manual says it gives dogs--in-my-house 2. Multiple hyphens don't seem to be permitted in citation ids - They have to be protected with braces - I think that they should be permitted? 3. Invalid protected citations don't seem to generate citeproc warnings - My pandoc version is a bit old (2.11.4), so apologies if this has already been fixed Thoughts? Thanks, William -------- # Heading -- double (en-dash is regarded as formatting and is removed? get `heading-double`) # Heading - single (hyphen is retained; get `heading---single`) The triple hyphens in @heading---single aren't parsed as part of the identifier, but should be? Protecting the id as in @{heading---single} works. (The above doesn't generate a --citeproc warning.) # *Dogs*?--in *my* house? (manual says get `dogs--in-my-house` but get `dogsin-my-house`) # *Dogs*?-in *my* house? (get `dogs-in-my-house`) -------- URL: https://pandoc.org/try/?text=%23+Heading+--+double%0A(en-dash+is+regarded+as+formatting+and+is+removed%3F+get+%60heading-double%60)%0A%0A%23+Heading+-+single%0A(hyphen+is+retained%3B+get+%60heading---single%60)%0A%0AThe+triple+hyphens+in+%40heading---single+aren%27t+parsed+as+part+of+the+identifier%2C+but+should+be%3F%0A%0AProtecting+the+id+as+in+%40%7Bheading---single%7D+works.%0A%0A(The+above+doesn%27t+generate+a+--citeproc+warning.)%0A%0A%23+*Dogs*%3F--in+*my*+house%3F%0A(manual+says+get+%60dogs--in-my-house%60+but+get+%60dogsin-my-house%60)%0A%0A%23+*Dogs*%3F-in+*my*+house%3F%0A(get+%60dogs-in-my-house%60)&from=markdown&to=html5&standalone=0 -- 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/CAEe_xxh%3DPMkddncAi%3DAX_7dbTV30wAE4%3DNoto8kgaxK7Tc-vbQ%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3911 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAEe_xxh=PMkddncAi=AX_7dbTV30wAE4=Noto8kgaxK7Tc-vbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Double hyphens in headings (and a couple of other things) [not found] ` <CAEe_xxh=PMkddncAi=AX_7dbTV30wAE4=Noto8kgaxK7Tc-vbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2021-07-31 22:07 ` William Lupton [not found] ` <CAEe_xxiR-HV7SxqXmuCCgOHvtKTxRJEGTa-6gG3=Zk4oOB48rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: William Lupton @ 2021-07-31 22:07 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 3264 bytes --] Seeing no responses to this, I'm thinking maybe it wasn't sufficiently "discussy", or maybe came over as a complaint. Not my intent! I love working with pandoc, and these are very minor things. The main thing is that I have a lua filter that implements the "auto-identifier" algorithm, and I noticed a little problem with a figure caption that included an en-dash. Should I create an issue? On Wed, 28 Jul 2021, 15:52 William Lupton, <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> wrote: > All, > > I processed the input shown below at pandoc/try (the URL is given at the > bottom). Here are my comments: > > 1. A double hyphen in a heading is removed when calculating the id > - > - I tried disabling the "smart" extension, and heading-double now > becomes heading----double > - So I think this is because it's an en-dash, is regarded as > "formatting", and is therefore removed > - But is a dash really formatting? And anyway, should "smart" > affect the generated id? > - Note that *Dogs*?-in *my* house? results in dogs-in-my-house, > whereas the manual says it gives dogs--in-my-house > 2. Multiple hyphens don't seem to be permitted in citation ids > - They have to be protected with braces > - I think that they should be permitted? > 3. Invalid protected citations don't seem to generate citeproc warnings > - My pandoc version is a bit old (2.11.4), so apologies if this has > already been fixed > > Thoughts? > > Thanks, > William > > -------- > # Heading -- double > (en-dash is regarded as formatting and is removed? get `heading-double`) > > # Heading - single > (hyphen is retained; get `heading---single`) > > The triple hyphens in @heading---single aren't parsed as part of the > identifier, but should be? > > Protecting the id as in @{heading---single} works. > > (The above doesn't generate a --citeproc warning.) > > # *Dogs*?--in *my* house? > (manual says get `dogs--in-my-house` but get `dogsin-my-house`) > > # *Dogs*?-in *my* house? > (get `dogs-in-my-house`) > -------- > > URL: > > > https://pandoc.org/try/?text=%23+Heading+--+double%0A(en-dash+is+regarded+as+formatting+and+is+removed%3F+get+%60heading-double%60)%0A%0A%23+Heading+-+single%0A(hyphen+is+retained%3B+get+%60heading---single%60)%0A%0AThe+triple+hyphens+in+%40heading---single+aren%27t+parsed+as+part+of+the+identifier%2C+but+should+be%3F%0A%0AProtecting+the+id+as+in+%40%7Bheading---single%7D+works.%0A%0A(The+above+doesn%27t+generate+a+--citeproc+warning.)%0A%0A%23+*Dogs*%3F--in+*my*+house%3F%0A(manual+says+get+%60dogs--in-my-house%60+but+get+%60dogsin-my-house%60)%0A%0A%23+*Dogs*%3F-in+*my*+house%3F%0A(get+%60dogs-in-my-house%60)&from=markdown&to=html5&standalone=0 > -- 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/CAEe_xxiR-HV7SxqXmuCCgOHvtKTxRJEGTa-6gG3%3DZk4oOB48rg%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 4783 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAEe_xxiR-HV7SxqXmuCCgOHvtKTxRJEGTa-6gG3=Zk4oOB48rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Double hyphens in headings (and a couple of other things) [not found] ` <CAEe_xxiR-HV7SxqXmuCCgOHvtKTxRJEGTa-6gG3=Zk4oOB48rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2021-08-10 13:52 ` William Lupton 0 siblings, 0 replies; 3+ messages in thread From: William Lupton @ 2021-08-10 13:52 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 4003 bytes --] Update: 1. A double hyphen in a heading is removed when calculating the id ==> *created https://github.com/jgm/pandoc/issues/7483 <https://github.com/jgm/pandoc/issues/7483>* 2. Multiple hyphens don't seem to be permitted in citation ids ==> *added https://github.com/jgm/pandoc/issues/5458#issuecomment-896044578 <https://github.com/jgm/pandoc/issues/5458#issuecomment-896044578>* 3. Invalid protected citations don't seem to generate citeproc warnings ==> *works as expected in pandoc 2.14.1* Thanks. On Sat, 31 Jul 2021 at 23:07, William Lupton <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> wrote: > Seeing no responses to this, I'm thinking maybe it wasn't sufficiently > "discussy", or maybe came over as a complaint. Not my intent! I love > working with pandoc, and these are very minor things. > > The main thing is that I have a lua filter that implements the > "auto-identifier" algorithm, and I noticed a little problem with a figure > caption that included an en-dash. Should I create an issue? > > On Wed, 28 Jul 2021, 15:52 William Lupton, <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> > wrote: > >> All, >> >> I processed the input shown below at pandoc/try (the URL is given at the >> bottom). Here are my comments: >> >> 1. A double hyphen in a heading is removed when calculating the id >> - >> - I tried disabling the "smart" extension, and heading-double now >> becomes heading----double >> - So I think this is because it's an en-dash, is regarded as >> "formatting", and is therefore removed >> - But is a dash really formatting? And anyway, should "smart" >> affect the generated id? >> - Note that *Dogs*?-in *my* house? results in dogs-in-my-house, >> whereas the manual says it gives dogs--in-my-house >> 2. Multiple hyphens don't seem to be permitted in citation ids >> - They have to be protected with braces >> - I think that they should be permitted? >> 3. Invalid protected citations don't seem to generate citeproc >> warnings >> - My pandoc version is a bit old (2.11.4), so apologies if this >> has already been fixed >> >> Thoughts? >> >> Thanks, >> William >> >> -------- >> # Heading -- double >> (en-dash is regarded as formatting and is removed? get `heading-double`) >> >> # Heading - single >> (hyphen is retained; get `heading---single`) >> >> The triple hyphens in @heading---single aren't parsed as part of the >> identifier, but should be? >> >> Protecting the id as in @{heading---single} works. >> >> (The above doesn't generate a --citeproc warning.) >> >> # *Dogs*?--in *my* house? >> (manual says get `dogs--in-my-house` but get `dogsin-my-house`) >> >> # *Dogs*?-in *my* house? >> (get `dogs-in-my-house`) >> -------- >> >> URL: >> >> >> https://pandoc.org/try/?text=%23+Heading+--+double%0A(en-dash+is+regarded+as+formatting+and+is+removed%3F+get+%60heading-double%60)%0A%0A%23+Heading+-+single%0A(hyphen+is+retained%3B+get+%60heading---single%60)%0A%0AThe+triple+hyphens+in+%40heading---single+aren%27t+parsed+as+part+of+the+identifier%2C+but+should+be%3F%0A%0AProtecting+the+id+as+in+%40%7Bheading---single%7D+works.%0A%0A(The+above+doesn%27t+generate+a+--citeproc+warning.)%0A%0A%23+*Dogs*%3F--in+*my*+house%3F%0A(manual+says+get+%60dogs--in-my-house%60+but+get+%60dogsin-my-house%60)%0A%0A%23+*Dogs*%3F-in+*my*+house%3F%0A(get+%60dogs-in-my-house%60)&from=markdown&to=html5&standalone=0 >> > -- 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/CAEe_xxiaBfRJMP9032DPdijoqVapyDkR6gZe2y-iqurZ6VhbFQ%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 5881 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-10 13:52 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-07-28 14:52 Double hyphens in headings (and a couple of other things) William Lupton [not found] ` <CAEe_xxh=PMkddncAi=AX_7dbTV30wAE4=Noto8kgaxK7Tc-vbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2021-07-31 22:07 ` William Lupton [not found] ` <CAEe_xxiR-HV7SxqXmuCCgOHvtKTxRJEGTa-6gG3=Zk4oOB48rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2021-08-10 13:52 ` William Lupton
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).