public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* 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

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).