public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Keeping minimal Markdown formatting in text across multiple output formats
@ 2018-09-21  4:04 David S
       [not found] ` <4b684380-6706-48c1-9c4a-83d1273d8ed9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: David S @ 2018-09-21  4:04 UTC (permalink / raw)
  To: pandoc-discuss


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

What's the best way to preserve formatting information when using pandoc to 
convert Markdown to multiple output formats? 

For example, say there's a little bit of text that I want colored red and I 
use \textcolor{red}{this is red text} which works perfectly when exporting 
to PDF (via latex), but the text is just dropped when I convert to HTML. I 
know in HTML I can use spans, but then I lose the formatting if I also want 
to export to DOCX at the same time as PDF and HTML. Likewise, I know I can 
define a style in a DOCX template and then add a named style for things in 
red, but I don't think this will work for PDF output. 

Is there a filter to help preserve (or at least, not omit) minimally marked 
up text for multiple output formats?

-- 
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/4b684380-6706-48c1-9c4a-83d1273d8ed9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2018-09-22 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21  4:04 Keeping minimal Markdown formatting in text across multiple output formats David S
     [not found] ` <4b684380-6706-48c1-9c4a-83d1273d8ed9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-21  4:48   ` John MacFarlane
     [not found]     ` <m2d0t7wj5j.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-09-21  5:12       ` David S
     [not found]         ` <84dc8592-1848-433b-8ab1-58ea8514b703-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-21 17:06           ` John MacFarlane
     [not found]             ` <yh480kk1nebx0u.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-09-21 21:35               ` David Slochower
     [not found]                 ` <EF140339-8C11-4FF3-99F6-5B876ACAABCB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-21 22:27                   ` John MacFarlane
     [not found]                     ` <yh480kr2hma3ko.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-09-22  0:40                       ` David Slochower
     [not found]                         ` <7512A0A8-C621-4E38-8917-43917E0535CB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-22  4:03                           ` John MacFarlane
     [not found]                             ` <m2a7oaw544.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-09-22  4:22                               ` David Slochower
     [not found]                                 ` <06D62ED6-4EAF-4D38-A16C-4837FA6F7963-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-22 18:21                                   ` John MacFarlane

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