Substituting text formatting when compiling to text?

Ma
Matt_P
Posts: 4
Joined: Fri Apr 26, 2013 6:57 am
Platform: Mac

Fri Apr 26, 2013 7:05 am Post

Is it possible to substitute formatting information (italics, bold, etc.) at compile time with text decorations? I've got some documents where I want to maintain formatting when producing PDFs, etc. .. but when I compile to text I want to substitute formatting with something useful for that format, for example surrounding underlined text with underscores.

The closest I've found is using Format -> Convert -> Bold and Italics to MultiMarkdown ... but that's a permanent conversion and isn't reversible for when I want to compile to some format that can use formatting information.

I was hoping to find something in Transformations or Replacements, but no luck (or I'm just missing it). Is the option there, but just somewhere I'm not seeing it?

User avatar
temporalranger
Posts: 149
Joined: Thu Aug 09, 2012 12:34 am
Platform: Mac + Windows
Contact:

Fri Apr 26, 2013 8:22 am Post

Not 100% since it's not something I personally use, but I think selecting "MultiMarkdown" in the "Compile For" selection at the bottom of the Compile menu might achieve what you're after?

ETA: Just tested, and seems I was mistaken. Sorry!

Ma
Matt_P
Posts: 4
Joined: Fri Apr 26, 2013 6:57 am
Platform: Mac

Fri Apr 26, 2013 2:01 pm Post

temporalranger wrote:Not 100% since it's not something I personally use, but I think selecting "MultiMarkdown" in the "Compile For" selection at the bottom of the Compile menu might achieve what you're after?


I played with those. The multimarkdown compile options assume you've got a document already in multimarkdown format (i.e. used the "Bold and Italics to MultiMarkdown" menu to remove bold/italics information).

User avatar
temporalranger
Posts: 149
Joined: Thu Aug 09, 2012 12:34 am
Platform: Mac + Windows
Contact:

Fri Apr 26, 2013 2:09 pm Post

Matt_P wrote:I played with those. The multimarkdown compile options assume you've got a document already in multimarkdown format (i.e. used the "Bold and Italics to MultiMarkdown" menu to remove bold/italics information).


Yep, hence my ETA: ;)

User avatar
MimeticMouton
Posts: 8874
Joined: Wed May 05, 2010 5:39 am
Platform: Mac + Windows
Location: city of rain
Contact:

Fri Apr 26, 2013 4:13 pm Post

If it's just bold and italic you're after, you could use MMD when writing (or convert to it, since it's after the fact), then for formats like PDF you can use the transformation option to convert Markdown to bold and italic in order to get your formatting there.
Jennifer Hughes
(MM for short)

Ma
Matt_P
Posts: 4
Joined: Fri Apr 26, 2013 6:57 am
Platform: Mac

Fri Apr 26, 2013 5:35 pm Post

MimeticMouton wrote:If it's just bold and italic you're after, you could use MMD when writing (or convert to it, since it's after the fact), then for formats like PDF you can use the transformation option to convert Markdown to bold and italic in order to get your formatting there.


No, not just bold and italic, but also underline. I'm looking for something more flexible than MMD. Besides, an MMD source text has fewer compile output options than rich text.

Ma
Matt_P
Posts: 4
Joined: Fri Apr 26, 2013 6:57 am
Platform: Mac

Fri Apr 26, 2013 6:05 pm Post

Since it sounds like perhaps this doesn't exist, maybe this can be taken as a feature request. I'd love to see something like this show up in the Transformations compile options, maybe as something that gets enabled when "Convert to plain text" is enabled (ETA: unless someone can think of a use case for this when not converting to plain text.. I suppose there might be such a case).

Image