* single underscores remain converting from commonmark to plain @ 2022-09-05 4:43 John [not found] ` <d2501388-9bbd-4fe2-abf8-5224d0d957can-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: John @ 2022-09-05 4:43 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 711 bytes --] 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-discuss+unsubscribe-/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. [-- Attachment #1.2: Type: text/html, Size: 1198 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <d2501388-9bbd-4fe2-abf8-5224d0d957can-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: single underscores remain converting from commonmark to plain [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> 0 siblings, 1 reply; 3+ messages in thread From: John MacFarlane @ 2022-09-05 19:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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 <urbanjost-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-discuss+unsubscribe-/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. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <E2FA51D8-B544-497E-B32E-0E832A59AD17-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: single underscores remain converting from commonmark to plain [not found] ` <E2FA51D8-B544-497E-B32E-0E832A59AD17-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2022-09-05 20:12 ` John 0 siblings, 0 replies; 3+ messages in thread From: John @ 2022-09-05 20:12 UTC (permalink / raw) To: pandoc-discuss [-- 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 --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-05 20:12 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-05 4:43 single underscores remain converting from commonmark to plain 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 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).