public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org>,
	pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: ' in meta value is converted into ’ in a lua filter
Date: Wed, 15 May 2019 09:21:41 -0700	[thread overview]
Message-ID: <yh480kbm03elii.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <m2mujn7txr.fsf-9Onoh4P/yGk@public.gmane.org>


YAML metadata fields are interpreted as markdown.

You can escape it to prevent "smartification":

    Children\'s Cognitive Ability

Or disable smartification globally by using `-f
markdown-smart` on the command line.

jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org> writes:

> I have some meta value like
> ```
> ---
> test: Children's Cognitive Ability
> ---
> ```
>
> In my lua filter:
> ```
> function Meta(meta)
>   for k, v in pairs(meta) do
>     if k=='test' then
>       print(pandoc.utils.stringify(v))
>     end
>   end
> end
> ```
>
> I find it prints
> ```
> Children’s Cognitive Ability
> ```
>
> I want to keep the single quote as it is. What should I do?
>
> -- 
> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2mujn7txr.fsf%40163.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/yh480kbm03elii.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2019-05-15 16:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15 13:01 jiewuza
     [not found] ` <m2mujn7txr.fsf-9Onoh4P/yGk@public.gmane.org>
2019-05-15 16:21   ` John MacFarlane [this message]
2019-05-16  7:40     ` jiewuza
     [not found]       ` <m2ftpe7sos.fsf-9Onoh4P/yGk@public.gmane.org>
2019-05-16  7:55         ` BPJ
2019-05-16  8:50           ` jiewuza
     [not found]             ` <m27eaq7pgx.fsf-9Onoh4P/yGk@public.gmane.org>
2019-05-16 17:07               ` BPJ
2019-05-16 17:13                 ` BPJ
     [not found]                   ` <CADAJKhDEN9EA8jaBH06=sqtc5Xpu5uZEutkCwpfaSpwQ2KGOWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-05-16 17:31                     ` BPJ
2019-05-17  4:17                   ` jiewuza
2019-05-16  8:46     ` jiewuza
     [not found]       ` <m2bm027po2.fsf-9Onoh4P/yGk@public.gmane.org>
2019-05-16 21:45         ` John MacFarlane
2019-05-17  4:16           ` jiewuza
     [not found]             ` <m236ld7m1o.fsf-9Onoh4P/yGk@public.gmane.org>
2019-05-17  5:09               ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yh480kbm03elii.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=jiewuza-9Onoh4P/yGk@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).