code blocks not supported?!

Created on 9 April 2024, 9 months ago
Updated 12 April 2024, 8 months ago

Problem/Motivation

Not sure if this is a problem with League\CommonMark or this module. In the former case is quite a remarkable missing feature for a markdown editor to not support code blocks.

Text like:

```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```

is converted to:

<`code>{<br>
  "firstName": "John",<br>
  "lastName": "Smith",<br>
  "age": 25<br>
}<br>
<`/code>

(please note the additional <br> placed at the bottom which breaks line height styling)

instead of:

<pre class="something"><code>{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
<`/code></pre>

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024