6

I mean, why can I write in thisway, (just bolding: **wo**rd, or just italicizing:*wo*rd), but I can't ***comb***ine bold and italic?

It works non-intra-word, but doesn't work ***intra-***word.

Is it a bug?

4

You can have combination, just not using asterisks.

See here for an older post where markdown was significantly changed (re-written apparently) https://meta.stackexchange.com/a/229236/230506

Perhaps comment to Balpha about this issue you found.

  • 1
    Accepting because it's a workaround anyway :) – nicael Jun 28 '15 at 20:57
1

This is because * doesn't work if it is next to a punctuation mark or a number, and ** counts as one:

123*456*789 123*456*789

123aa456aa789 123a*a456a*a789

abcdefghi abc*def*ghi

abc***def***ghi abc***def***ghi

abc*'def*'ghi abc*'def*'ghi

abcdefghi abc**def**ghi

Use HTML or _ in the meantime:

123456789 123<strong><em>456</em></strong>789

123456789 123**_456_**789

Reason behind this:

  1. If a single or double asterisk is supposed to be interpreted as intra-word emphasis, it cannot have punctuation on one side; it actually must be inside a word. An example of an edge case this solves is

    It's a web*-based solution.

    *see Wikipedia for a definition of "web"

    where the asterisks after "web" could cause unintended italicizing if there was a second asterisk in the same paragraph somewhere.

  • Hm, but what's the reason behind it?.. Bug again, or intentional? – nicael Mar 27 '15 at 16:11
  • @nicael Edited to explain – Tim Mar 27 '15 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .