I am looking for a package to format text with Markdown bold and italic


#1

Dear all,

I am looking for a package that allows me to format selected text in Markdown bold or italic.

Does anyone have a suggestion?

Thankfully,

-Robert


#2

I’m not sure, but I don’t think there’s styles-only solution. The closest I got is this:

atom-text-editor::shadow {

    .has-selection .source.gfm {
      font-weight: bold;
      font-style: italic;
    }
}

However, it should be possible to achieve this programmatically, just toggle inline-styles when there’s a selection.


#3

Thank you @idleberg!

Does your solution do the following if I select the option from the Ctrl+P menu:

- text that should become bold 
+ **text that should become bold**

-Robert


#6

That was a misunderstanding. I thought you only wanted the text to be bold/italic when selected.

However, it looks like md-writer supports what you were after!


#7

This package is the solution! Thank you. :slight_smile:

Works even better with language-markdown.