Triple-asterisks (bold-italics) improperly interpreted

BobTodd's Avatar


29 Nov, 2018 05:28 PM


I've been noticing that if I write the following


MMD composer properly boldfaces the first syllable, while maintaining the entire string italicized. But if I write

***bold**faced italics*

then **bold** is no longer interpreted as boldface, though the overall string nevertheless remains italicized. Is there a way to get **bold** to be interpreted as boldface in both contexts? Or is there a reason why this won't work that I'm overlooking?

In a compiler like the one at Common Mark, both seem to result in the desired boldface.

Thanks for any help you can offer.

Peace out,

  1. Support Staff 1 Posted by Fletcher on 29 Nov, 2018 06:25 PM

    Fletcher's Avatar

    The "intra-word" strong/emph issue is complex.

    There is a wide range of edge cases when you start looking at this. The
    algorithm used in CommonMark gets some of them right, and some of them
    wrong. The algorithm I use in MMD gets some of them right, and some of
    them wrong. The two sets don't align, so you will find some edge cases
    work in one parser but not the other.

    When MMD tries to work out the proper behavior, it looks to see whether
    it is dealing with intra-word or extra-word (but not both.)

    In your case, the best approach would be to make your intention clear:

    _**bold**faced italics_


  2. 2 Posted by BobTodd on 29 Nov, 2018 06:51 PM

    BobTodd's Avatar

    Howdy Fletcher,

    I understand. And your solution is fantastic, yet simple. Thanks for the suggestion.

    Peace out,

  3. Fletcher closed this discussion on 09 Dec, 2018 09:37 PM.

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