Skip to content

Block elements are not combined into one block #93

Description

@catthecreator

Describe the bug
The block elements of code / quote must merge into one block

They have common styles, separating them into lines violates the markup

The delta code which generates the Problem

Example:

{ "ops": [ { "insert": "Just text\n" }, { "attributes": { "bold": true }, "insert": "Quo" }, { "insert": "te" }, { "attributes": { "blockquote": true }, "insert": "\n" }, { "insert": "Quote2" }, { "attributes": { "blockquote": true }, "insert": "\n" }, { "insert": "\nThis is" }, { "attributes": { "code-block": true }, "insert": "\n" }, { "insert": "Code" }, { "attributes": { "code-block": true }, "insert": "\n" }, { "insert": "sdfsdfds" }, { "attributes": { "blockquote": true }, "insert": "\n" } ] }

The expected html output the delta should produce

Example:

<p>Just text</p> 
<blockquote><strong>Quo</strong>te</blockquote> 
<blockquote>Quote2</blockquote> 
<p><br></p> 
<pre><code>This is</code></pre> 
<pre><code>Code</code></pre> 
<blockquote>sdfsdfds</blockquote>

Expected behavior
I expect the entire block of code to be in one tag:

<p>Just text</p> 
<blockquote><strong>Quo</strong>te<br>
Quote2</blockquote> 
<p><br></p> 
<pre><code>This is<br>
Code</code></pre> 
<blockquote>sdfsdfds</blockquote>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions