# Bold and Italic in Chinese

**URL:** https://meta.discourse.org/t/bold-and-italic-in-chinese/34550
**Category:** Bug
**Tags:** markdown-it-review
**Created:** [Octobre 15, 2015, 1:00 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550 "2015-10-15T13:00:17Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![11122](https://avatars.discourse-cdn.com/v4/letter/1/6a8cbe/32.png) [@11122](https://meta.discourse.org/u/11122)
#### Post date: [Octobre 15, 2015, 1:00 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/1 "2015-10-15T13:00:17Z")

</div>

I am really confused with this editor, perhaps this is because I am a chinese.  
Here is my problems:

1. bold and italic work only when the character before is space or paragraph begin. For example:  
 ![](https://global.discourse-cdn.com/meta/optimized/3X/0/c/0cb57016b32e306fa4d7281601de90ad8be322ae_2_690x29.PNG)  
This seems reasonable in English since that you should bold a word not only part of a word. But, in chinese, all the words are together: 我是 **中国人**. So when I want to type chinese, most of the time, bold and italic don’t work.
2. image in bullet list always in a new paragraph. This creates problem when I want to realize a inline image like this:  
 ![](https://global.discourse-cdn.com/meta/original/3X/b/7/b71d04281e79d7971f7783fb2c54d7aa13d600ed.PNG)

Plus [what I found before](https://meta.discourse.org/t/post-editor-heading-not-working-for-less-than-3-charactors/34507), I do not think this is a good editor. I think it will confuse most user when I click bold and two \*\* is added. For people who do not know mark down, what is this \*\*?

I am a developer, not a hard core one, I found this editor hard to use. I love discourse, it is more advanced than most of the BBS. But I just can not understand why we need a geeky editor.

Thanks for your work, any way.

---

<div class="post-metadata">

### Author: ![vulkanino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vulkanino/32/119654_2.png) [@vulkanino](https://meta.discourse.org/u/vulkanino)
#### Post date: [Octobre 15, 2015, 1:38 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/2 "2015-10-15T13:38:48Z")

</div>

[https://meta.discourse.org/t/please-allow-option-for-editing-inline-using-a-rich-text-editor/849](https://meta.discourse.org/t/please-allow-option-for-editing-inline-using-a-rich-text-editor/849)

For the bold and italic issue, I don’t have a chinese keyboard but I can boldify the first letter of a word like **t** his, but I can’t boldify a middle letter like t **h** is, is this a bug?

---

<div class="post-metadata">

### Author: ![11122](https://avatars.discourse-cdn.com/v4/letter/1/6a8cbe/32.png) [@11122](https://meta.discourse.org/u/11122)
#### Post date: [Octobre 15, 2015, 1:41 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/3 "2015-10-15T13:41:41Z")

</div>

as I said: the bold works only when the character before is a space. so you could bold the first character of a word or paragraph, but not the middle of a word.

---

<div class="post-metadata">

### Author: ![11122](https://avatars.discourse-cdn.com/v4/letter/1/6a8cbe/32.png) [@11122](https://meta.discourse.org/u/11122)
#### Post date: [Octobre 15, 2015, 1:49 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/4 "2015-10-15T13:49:28Z")

</div>

> [@vulkanino](#):
>
> For the bold and italic issue, I don’t have a chinese keyboard but I can boldify the first letter of a word like this, but I can’t boldify a middle letter like t **h** is, is this a bug?

I think this is a bug, I have tested, it works with stackoverflow.

---

<div class="post-metadata">

### Author: ![vulkanino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vulkanino/32/119654_2.png) [@vulkanino](https://meta.discourse.org/u/vulkanino)
#### Post date: [Octobre 15, 2015, 2:06 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/5 "2015-10-15T14:06:41Z")

</div>

True, it works on SO:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/d/2dda5bc95a8dc4da103a9820371240880c48bb3c.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Octobre 15, 2015, 9:18 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/6 "2015-10-15T21:18:57Z")

</div>

Intra-word bold and italic are generally disabled, as they are unwanted in English. I can see this being needed in other languages where words have no spaces between them.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Octobre 15, 2015, 9:25 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/7 "2015-10-15T21:25:00Z")

</div>

Can you test this on our new markdown parser?

> **[markdown-it demo](https://markdown-it.github.io/)**

We plan to move to it later this year.

---

<div class="post-metadata">

### Author: ![11122](https://avatars.discourse-cdn.com/v4/letter/1/6a8cbe/32.png) [@11122](https://meta.discourse.org/u/11122)
#### Post date: [Octobre 16, 2015, 7:21 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/8 "2015-10-16T07:21:08Z")

</div>

great, both bold and italic works well on the new markdown parser, including [the problem with heading.](https://meta.discourse.org/t/post-editor-heading-not-working-for-less-than-3-charactors/34507)

---

<div class="post-metadata">

### Author: ![Wesley\_Chia\_Wei\_Lin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesley_chia_wei_lin/32/63768_2.png) [@Wesley\_Chia\_Wei\_Lin](https://meta.discourse.org/u/Wesley_Chia_Wei_Lin)
#### Post date: [Novembre 1, 2016, 5:30 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/9 "2016-11-01T05:30:09Z")

</div>

Facing this issue as well, how should I update the editor to the new markdown parser?  
Any help would be appreciate!!!

---

<div class="post-metadata">

### Author: ![sujato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujato/32/114616_2.png) [@sujato](https://meta.discourse.org/u/sujato)
#### Post date: [Novembre 1, 2016, 2:06 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/10 "2016-11-01T14:06:22Z")

</div>

This is not exactly the same issue, but relates to use of bold and italic in Chinese more generally. Most CJK fonts, including standard default fonts, do not have proper bold and italic. So what a user sees are the dreaded faux-bold and faux-italic created by the browser. In good typography these should always be avoided.

Now, if a user wants to use them in the editor, whatever, that’s up to them. But as far as the site UI goes, it’s best to avoid them completely. You can see this principle at work, for example, if you compare Google’s search results with Baidu’s. Google highlights the search term with bold, while Baidu does it with color.

In most cases faux-bold and faux-italic merely look bad. However in complex and dense CJK glyphs, the artificial distortion can badly smear the forms, erasing space and rendering them unreadable.

As it happens, there aren’t many such instances in the Discourse UI. But there are some, and it would be nice to adjust the CSS for CJK there.

The only typographically satisfactory way to use bold on the web in CJK is via @font-face. Google’s Noto CJK has lovely bold, but even that doesn’t have an italic.

Editing my original post here to add screenshots. Here’s the same part of Discourse UI, using fonts that are otherwise similar, Droid Sans and Noto Sans. First Droid, showing the faux-bold:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/3/13576a5325b5372b3d82801c9351a20483979a51.png)

As you can see, several of the dense bolded glyphs on the left have blurred and become black masses. These are by no means the worst instances, and Droid is not the worst offender.

Here’s Noto, which uses a proper bold:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/e/7e2bae569202bb725b59766da7c369acf1e9d8ce.png)

Luckily for Ubuntu users, we now have Noto installed by default. But a lot of users will be seeing the faux-forms.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Juin 26, 2017, 2:00 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/11 "2017-06-26T14:00:13Z")

</div>

> [@11122](#):
>
> great, both bold and italic works well on the new markdown parser, including the problem with heading.

The new engine is now deployed here, so this is all fixed 🎊

> [@CommonMark testing started here!](https://meta.discourse.org/t/commonmark-testing-started-here/65121):
>
> Per our [migration plans](https://meta.discourse.org/t/discourse-commonmark-migration-plans-confetti-ball-balloon), I just enabled [markdown.it](https://github.com/markdown-it/markdown-it) at Meta. It is an excellent [CommonMark](http://commonmark.org/) compliant engine. I expect quite a few edges to be found during this period of testing. Do not open bugs about the new Engine, just reply here. I/we will be updating the top post here with the list of issues and striking out stuff as it is fixed. Current known issues (to be fixed)white_check_mark Onebox vanishes after you start typing and works not-super consistently white_check_mark pending…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Juin 26, 2017, 2:00 UTC](https://meta.discourse.org/t/bold-and-italic-in-chinese/34550/12 "2017-06-26T14:00:58Z")

</div>


