public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* From Markdown into PDF: Why disabling the 'smart' extension doesn't disable replacement of apostropes?
@ 2022-08-23 10:45 name name
       [not found] ` <a5b11220-b1b5-4299-8690-c59a448049c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: name name @ 2022-08-23 10:45 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 945 bytes --]

If I disable the `smart` extension when converting from Markdown to PDF, 
this successfully prevents replacing series of three hyphens with em 
dashes, and straight quotes with curly qurly quotes, but a single straight 
quotes that is used as an apostrophe is nevertheless convered into a curly 
one. Why?

- `foo --- bar` → `foo --- bar` (no changes, fine)
- ` `"What you say?" she said` → `"What you say?" she said` (no changes, 
fine)
- `John's car` → `John’car` (U+0027 has been replaced with U+2019, why?)

-- 
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/a5b11220-b1b5-4299-8690-c59a448049c6n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1237 bytes --]

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

* Re: From Markdown into PDF: Why disabling the 'smart' extension doesn't disable replacement of apostropes?
       [not found] ` <a5b11220-b1b5-4299-8690-c59a448049c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-08-23 13:10   ` Bastien DUMONT
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien DUMONT @ 2022-08-23 13:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

In short, in the most recent versions of Pandoc (at least 2.19.1 I guess), you should be able to preserve the straight quote by escaping it (e.g. "John\'s car"). See this discussion for more details and a workaround for less recent versions: https://groups.google.com/g/pandoc-discuss/c/En3Px-geqnI

Le Tuesday 23 August 2022 à 03:45:01AM, name name a écrit :
> If I disable the `smart` extension when converting from Markdown to PDF, this
> successfully prevents replacing series of three hyphens with em dashes, and
> straight quotes with curly qurly quotes, but a single straight quotes that is
> used as an apostrophe is nevertheless convered into a curly one. Why?
> 
> - `foo --- bar` → `foo --- bar` (no changes, fine)
> - ` `"What you say?" she said` → `"What you say?" she said` (no changes, fine)
> - `John's car` → `John’car` (U+0027 has been replaced with U+2019, why?)
> 
> --
> 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/a5b11220-b1b5-4299-8690-c59a448049c6n%40googlegroups.com.
> 
> References:
> 
> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups.google.com/d/msgid/pandoc-discuss/a5b11220-b1b5-4299-8690-c59a448049c6n%40googlegroups.com?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/YwTRqlu5FmXT0Afs%40localhost.


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

end of thread, other threads:[~2022-08-23 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 10:45 From Markdown into PDF: Why disabling the 'smart' extension doesn't disable replacement of apostropes? name name
     [not found] ` <a5b11220-b1b5-4299-8690-c59a448049c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-23 13:10   ` Bastien DUMONT

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