idea-multimarkdown icon indicating copy to clipboard operation
idea-multimarkdown copied to clipboard

Surrounding markdown code blocks with alternate code blocks breaks

Open allejo opened this issue 4 years ago • 1 comments

It is valid to nest to code blocks in markdown as such:

~~~markdown
```php
<?php

echo someFunction();
```
~~~

You can see how GitHub handles this below:

```php
<?php

echo someFunction();
```

However, this breaks all parsing after these nested code blocks in this plugin.

image image

allejo avatar Mar 27 '20 23:03 allejo

@allejo, it is an issue with CommonMark parser which need to be upgraded to version 28.1 compatibility.

Previous version treated ~~~ and ``` and interchangeable so the triple tilde is closed by the triple back ticks.

The only workaround for now is to use 4 or more tilde or back ticks on the outer code fence:

~~~~markdown
```php
<?php

echo someFunction();
```
~~~~

vsch avatar Mar 28 '20 14:03 vsch