Cannot make text bold in the middle of a word with asterisks

That’s Numberwang

1 Like

this is not a bug. you may want to acquaint yourself with markdown: http://daringfireball.net/projects/markdown/syntax

The problem is that the little editor thingy uses markdown. For example:

This is a demonstration where I highlighted “mon” in that word and hit the bold button in the editor.

To do that properly you can use HTML like so:

This is a demonstration where I bolded “mon” in that word using HTML.

As the broken one is how markdown is supposed to work the formatting buttons should not use markdown when they are inserting said formatting.

1 Like

I think that is how markdown is supposed to work. From the link @tobiaseigen posted:

[Quote]Emphasis can be used in the middle of a word:
unfriggingbelievable
[/Quote]
Source

And see: http://johnmacfarlane.net/babelmark2/?normalize=1&text=Numberwang

3 Likes

OK, I’d not looked at the mess that is markdown so it is supposed to muck with things in the middle of words. If that gets fixed then I guess using markdown in from the editor’s buttons would work. Once they fix it that is.

You mean the part that says

Emphasis can be used in the middle of a word:

EDIT: Just realized someone else brought this point up. Sorry for the additional post.

1 Like

@codinghorror has blogged about markdown at http://blog.codinghorror.com/the-future-of-markdown/ - a worthwhile read.

I think discourse is encouraging people to join the discussions at http://commonmark.org on improving markdown and making it more consistent for everyone, including discourse.

The commonmark spec http://spec.commonmark.org/0.13/ actually describes “intraword emphasis” which is what @JazzyJosh is complaining does not work in discourse now, so maybe this is indeed a bug.

Personally I don’t see intraword emphasis as much of a priority, and I also don’t see the toolbar in the editor as much more than a guide. I always end up manually tweaking the markdown it generates… which I think is how it’s supposed to be used.

Not a bug, by design. Intra-word emphasis is generally unwanted so we disable it.

Read this old blog post to learn why:

1 Like

It works if you use $.

Here is my test$unbelievable$but it works.

Works with italic too
Here is my test$unbelievable$but it works.

So it seems the boundary detection doesn’t apply to symbols.

Oooh, found a way to use a non-visible character to do it :smile:
test�bold�Iknow
test**bold**Iknow

Edit:
I only know this because we run into this “workaround” on our instance when people don’t properly surround their code blocks with backticks or indent them with 4 spaces.

3 Likes

You can also use HTML tags if you really need intra word.