Have a look at this answer
One of the bolds works, and the other one just turns up as ** in the actual post.
This is the string that isn't working: **x**ml n**ib**
Which renders as: xml nib
Have a look at this answer
One of the bolds works, and the other one just turns up as ** in the actual post.
This is the string that isn't working: **x**ml n**ib**
Which renders as: xml nib
This is not a bug; this is by design.
It becomes very difficult to talk about code when your_variable_names_are_suddenly_underlined. Intra-word emphasis is a bad idea and we have EXPLICITLY disabled it.
See: https://blog.stackoverflow.com/2008/06/three-markdown-gotcha/.
1) Markdown’s single biggest flaw is its intra-word emphasis.
I don’t think anybody writes:
un*fricking*believableoften enough to justify making it nearly impossible to talk about tokens with underscores in them:
some_file_nameis interpreted as:
some<em>file</em>nameIt even works across word boundaries:
file_one and file_twobecomes:
file<em>one and file</em> twoWhenever you’re writing tokens with underscores you have to make absolutely sure you’re in a backtick-delimited code span. The same problem will also nail you on equations like abc, but that seems to pop up less frequently.
Showdown follows the reference implementation on all this, but in WMD I do a little preprocessing to hack the idiocy away: basically I just backslash-escape any underscores or asterisks that might trigger it. It’s a flagrant violation of the standard, but since it’s a pre-pass that should produce identical output with any Markdown processor, I feel justified. Unfortunately my hack did screw up one edge case (which I don’t have in front of me) and there isn’t any way to disable it. Both those things will change in the next release.
PLAIN_TEXT and sees PLAIN<i>TEXT</i> instead, it's easy to correct (it's a wiki. Just fix it), but when they type intraword emphasis and don't get it, it's not as easy to fix (<b> doesn't immediately come to mind). This used to be intentional for a long time, but now it works. See Markdown change: Intra-word emphasis now works.
xml n ib
xml nib
xml nib
Looks like it doesn't work when bolding partial words, which at times could be useful if you ever need to use ** inside another word sentence.
Unclear which would be better in this case, stats on how often ** is used? :p
abc abc abc
<b></b> A failing in the markdown parser. It starts a bold if the bold tag starts on a word boundary, but not inside a word.
Xml nIB
But it works in the preview box correctly, so the javascript parser is correct, the server side one is not.
It works good; just put some spaces.
x ml n ib
**x** ml n **ib**
If you want to use it without spaces you could use <b></b>.
xml nib
<b>x</b>ml n<b>ib</b>
You can also put <o> before the initial ** and after the final **.
aaaa = xml nib
a<o>**aa**<o>a = **x**<o>ml n<o>**ib**
Is a double asterisk a left bracket, or a right bracket, or a single asterisk that's been escaped? It gets worse. A single asterisk can be a left bracket or a right bracket as well. If I remember right, single asterisk indicates italics. No matter how you write the parser, there are going to be complaints.
This text was bracketed by single asterisks.
To see the problem more clearly, consider quoted text inside of CSV. A quote mark can be a left bracket or a right bracket. A double quote is typically an escaped single quote. Quotes cannot be nested.
**x**ml n**ib**" gets rendered like this: xml nib