You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<blockquote><p>
Line 1
</p><p>
Line 2
</p><pre><code>Codeblock
</code></pre><h1>
Heading
</h1></blockquote>
which has alot of unnecessary newlines.
It would be nice to remove the newlines inbetween inner block-elements (eg. paragraphs/codeblocks/headings), as well as make each inner block-element take only 1 line, like so:
Note: The removal of newlines inbetween inner block-elements inside blockquotes can be achieved by passing down a boolean, which controls whether to add \n\n to end of the inner-content in each block-element-rule
Similarly, block-elements that has no attributes and contain 1 liner inner-content (ie. contains no \n), can be made into 1 liners to improve readability, like so:
<!-- Improved 1 liner --><p>TEXT</p><!-- Current multi-line block-elements --><p>
TEXT
</p>
The text was updated successfully, but these errors were encountered:
Currently, the below HTML:
is converted to:
which has alot of unnecessary newlines.
It would be nice to remove the newlines inbetween inner block-elements (eg. paragraphs/codeblocks/headings), as well as make each inner block-element take only 1 line, like so:
Similarly, block-elements that has no attributes and contain 1 liner inner-content (ie. contains no
\n
), can be made into 1 liners to improve readability, like so:The text was updated successfully, but these errors were encountered: