# Certain info strings on fenced code blocks break formatting between the blocks

**URL:** <https://meta.discourse.org/t/certain-info-strings-on-fenced-code-blocks-break-formatting-between-the-blocks/42467>\
**Category:** Bug\
**Tags:** markdown-it-review\
**Created:** [April 12, 2016, 7:09pm UTC](https://meta.discourse.org/t/certain-info-strings-on-fenced-code-blocks-break-formatting-between-the-blocks/42467 "2016-04-12T19:09:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![DavidEGrayson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidegrayson/32/120237_2.png) [@DavidEGrayson](https://meta.discourse.org/u/DavidEGrayson)\
**Post date:** [April 12, 2016, 7:09pm UTC](https://meta.discourse.org/t/certain-info-strings-on-fenced-code-blocks-break-formatting-between-the-blocks/42467/1 "2016-04-12T19:09:16Z")

</div>

I just encountered a bug while I was writing a post on a Discourse-powered forum and would like to report it.

It seems like if I have two fenced code blocks with an info string of “{.cpp}”, where each block starts with a line equal to “```{.cpp}” and ends with a line equal to “```”, then any text formatting between the two blocks of code does not work at all, and we see the markup instead of seeing nicely-formatted text. See below for an example:

```plaintext
// Here is a block of C++ code.

```

For some reason we cannot have `monospace`, _italic_, **bold** , or [link](https://example.com) text in this paragraph, which is between two blocks of C++ code. In fact, I can’t find any other Markdown, BBCode, or HTML that does work in this area.

We can’t even have multiple paragraphs.

```plaintext
// Here is a second block of C++ code.

```

A workaround for this is to remove the `{.cpp}` info string on the first code block, but of course that destroys the code highlighting in that first block. I couldn’t find any better solution even though I tried info strings of “.cpp”, “cpp”, and “c++”.

I made a [copy of this post as a Gist](https://gist.github.com/DavidEGrayson/05e71787bd36139f59088f59101a04a5) so you can see the markup I used and verify that it works correctly in GitHub-flavored Markdown.

–David

---

_[View the full topic](https://meta.discourse.org/t/certain-info-strings-on-fenced-code-blocks-break-formatting-between-the-blocks/42467)._
