Is there a way to make underlines in Marked?

Lydia's Avatar


31 Mar, 2012 06:18 PM


Is there a way to set Marked so that instead of italics, underlines are produced? A professor requires bold text and underlined text for something I submit to her.

Thank you.

  1. Support Staff 1 Posted by Brett on 31 Mar, 2012 06:30 PM

    Brett's Avatar

    You could easily adjust a custom style to style italics as underlines. If you'd like me to set that up, just let me know which base style you want to use and I can send it back as a Custom Style with the adjustment.

    The other option would be to use a custom script to replace a new syntax with underlines, allowing you to still use italics as italics. I wrote a quick script that will render {{your text}} as <u>your text</u> in the output. It requires a separate multimarkdown install and a little command line knowledge, though. Let me know if that's of interest and you're comfortable doing that. I can assist as needed.

  2. 2 Posted by Lydia on 01 Apr, 2012 01:58 AM

    Lydia's Avatar

    If you could put it in Swiss, that would be wonderful. Thank you!

  3. Support Staff 3 Posted by Brett on 01 Apr, 2012 03:11 AM

    Brett's Avatar

    Here you go. Just add the Underlines.css file attached to Marked's custom styles under Style in the preference panel. Then select it as your preview style in the dropdown and anything you have set to italics will show up as non-italicized, underlined text. If I I misunderstood the requirements at all, let me know.

  4. Brett closed this discussion on 01 Apr, 2012 03:11 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac