# Nested inline styles - differences in implementations

**URL:** <https://talk.commonmark.org/t/nested-inline-styles-differences-in-implementations/2549>\
**Category:** Implementation\
**Created:** [July 28, 2017, 9:54pm UTC](https://talk.commonmark.org/t/nested-inline-styles-differences-in-implementations/2549 "2017-07-28T21:54:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeantsoi](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/zeantsoi/32/1214_2.png) [@zeantsoi](https://talk.commonmark.org/u/zeantsoi)\
**Post date:** [July 28, 2017, 9:54pm UTC](https://talk.commonmark.org/t/nested-inline-styles-differences-in-implementations/2549/1 "2017-07-28T21:54:02Z")

</div>

I’ve encountered an instance of nested inline styling that seems to be handled quite differently across implementations. It’s an edge case, so I’m not sure whether it’s a gap in the spec or an issue with implementation.

Consider the following CommonMark text:

```auto
**bold***** bold+italic *****bold**

```

In GitHub authored implementations ([cmark](https://github.com/jgm/cmark) and [comrak](https://github.com/kivikakk/comrak)), this renders as follows:

**bold**** _bold+italic_ ****bold**

However, in the [CommonMark dingus](http://spec.commonmark.org/dingus/), it renders as:

**bold**** _bold+italic_\*\*\*\*bold**

The matter is further complicated by tweaking the example slightly:

```auto
**bold***** bold+italic **** italic*

```

This case doesn’t seem to render per spec in _any_ of the implementations I’ve tried. Here’s how it looks on GitHub parsers:

**bold** _ **bold+italic** \*\*italic_

I’m inclined to think that the rendering of the latter example is due to at gap in the parsing implementation. If I’m not mistaken, the spec dictates that that it _should_ have rendered as follows, correct?

**bold** _ **bold+italic** __italic_
