# Odd behaviour with colon, emphasis and linebreak

**URL:** <https://talk.commonmark.org/t/odd-behaviour-with-colon-emphasis-and-linebreak/2736>\
**Category:** Spec\
**Created:** [February 13, 2018, 8:48am UTC](https://talk.commonmark.org/t/odd-behaviour-with-colon-emphasis-and-linebreak/2736 "2018-02-13T08:48:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Murre](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/j/cab0a1/32.png) [@Jan\_Murre](https://talk.commonmark.org/u/Jan_Murre)\
**Post date:** [February 13, 2018, 8:48am UTC](https://talk.commonmark.org/t/odd-behaviour-with-colon-emphasis-and-linebreak/2736/1 "2018-02-13T08:48:33Z")

</div>

When trying to render the following markdown, the emphasis is not rendered correctly:

```
*text:*\
next line

```

When the break is done with 2 spaces, it renders correctly.

---

<div class="post-metadata">

**Author:** ![Crissov](https://talk.commonmark.org/user_avatar/talk.commonmark.org/crissov/32/1455_2.png) [@Crissov](https://talk.commonmark.org/u/Crissov)\
**Post date:** [February 13, 2018, 11:44am UTC](https://talk.commonmark.org/t/odd-behaviour-with-colon-emphasis-and-linebreak/2736/2 "2018-02-13T11:44:42Z")

</div>

I think this is the same issue as discussed in

> [@Emphasis Delimiter Parsing Difference with Hard Linebreaks](https://talk.commonmark.org/t/emphasis-delimiter-parsing-difference-with-hard-linebreaks/2695):
>
> The emphasis delimiters \* and \_ are parsed differently when proceeded by a hard linebreak. For example, compare the ASTs of \_\_strong\_\_\ ... [http://spec.commonmark.org/dingus/?text=\_\_strong\_\_\ next](http://spec.commonmark.org/dingus/?text= __strong__ %5C%0Anext) and \*\*strong\*\*\ ... [http://spec.commonmark.org/dingus/?text=\*\*strong\*\*\ next](http://spec.commonmark.org/dingus/?text= **strong** %5C%0Anext) Only the latter, with the ending \*\* delimiter, is parsed as strong emphasis. The former is parsed into three text elements: [‘\_\_’, ‘strong’, ‘\_\_’]. Why? I can’t tell from the [spec](http://spec.commonmark.org/0.28/#emphasis-and-strong-emphasis) whether this – admittedly surprising – …

---

<div class="post-metadata">

**Author:** ![Jan\_Murre](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/j/cab0a1/32.png) [@Jan\_Murre](https://talk.commonmark.org/u/Jan_Murre)\
**Post date:** [February 13, 2018, 1:15pm UTC](https://talk.commonmark.org/t/odd-behaviour-with-colon-emphasis-and-linebreak/2736/3 "2018-02-13T13:15:48Z")

</div>

Hi @Crissov,

Yes, you’re totally right. I did not use the right search terms when looking for existing items 🙂

Funny thing is that commonmark.js renders correctly without the colon, but wrong when a colon is being used.

Regards, Jan

---

<div class="post-metadata">

**Author:** ![codinghorror](https://talk.commonmark.org/user_avatar/talk.commonmark.org/codinghorror/32/2_2.png) [@codinghorror](https://talk.commonmark.org/u/codinghorror)\
**Post date:** [January 21, 2019, 11:42am UTC](https://talk.commonmark.org/t/odd-behaviour-with-colon-emphasis-and-linebreak/2736/4 "2019-01-21T11:42:25Z")

</div>

Closed on January 21, 2019, 11:42am UTC


