public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John <urbanjost-Wuw85uim5zDR7s880joybQ@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: single underscores remain converting from commonmark to plain
Date: Mon, 5 Sep 2022 13:12:36 -0700 (PDT)	[thread overview]
Message-ID: <a876b4e1-148f-470f-b49a-db02458d4078n@googlegroups.com> (raw)
In-Reply-To: <E2FA51D8-B544-497E-B32E-0E832A59AD17-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


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


Well, that appears to be perfect!  Exactly what I needed; I thought I was 
going to have to create a filter for the output.
Thanks!
On Monday, September 5, 2022 at 3:15:14 PM UTC-4 fiddlosopher wrote:

> No. Plain output roughly follows Project Gutenberg plain text conventions.
>
> However, if you want all emphasis to be removed entirely, you can use a 
> small Lua filter:
>
> function Emph(el)
> return el.content
> end
>
> save as deEmph.lua and use --lua-filter deEmph.lua on the command line.
>
>
> > On Sep 4, 2022, at 9:43 PM, John <urba...-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:
> > 
> > When I convert to plain text from commonmark the _word_ strings retain 
> their underscores.
> > I expect them to just become the word without the underscores. Is their 
> an option for this?
> > 
> > pandoc -f commonmark -t plain test.md
> > 
> > test.md:
> > 
> > **word**
> > __word__
> > *word*
> > _word_
> > 
> > output
> > 
> > WORD WORD _word_ _word_
> > 
> > 
> > 
> > -- 
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/d2501388-9bbd-4fe2-abf8-5224d0d957can%40googlegroups.com
> .
>
>

-- 
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/a876b4e1-148f-470f-b49a-db02458d4078n%40googlegroups.com.

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

      parent reply	other threads:[~2022-09-05 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05  4:43 John
     [not found] ` <d2501388-9bbd-4fe2-abf8-5224d0d957can-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-05 19:15   ` John MacFarlane
     [not found]     ` <E2FA51D8-B544-497E-B32E-0E832A59AD17-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-09-05 20:12       ` John [this message]

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=a876b4e1-148f-470f-b49a-db02458d4078n@googlegroups.com \
    --to=urbanjost-wuw85uim5zdr7s880joybq@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).