Open individual-it opened 7 months ago
If a presentation contains a list with multiline codeblocks inside of the list but there is a space in an empty line before the list, it get seperated
see the output of this presentation:
1. point one
a=a+b; ```
point two
a=a+b;
!Note that there is a single space in the first empty line!
one list (ol element) should be generated
ol
two ol elements are generated:
<ol> <li>point one</li> </ol> <pre class="code-wrapper"><code class="hljs language-ini" data-highlighted="yes"><span class="hljs-attr">a</span>=a+b<span class="hljs-comment">;</span></code></pre><ol start="2"> <li>point two</li> </ol> <pre class="code-wrapper"><code class="hljs language-ini" data-highlighted="yes"><span class="hljs-attr">a</span>=a+b<span class="hljs-comment">;</span></code></pre> ### Examples, Code Samples, or Screenshots deleting that single space fixes it:
point one
- **OS**: Ubuntu 22.04 - **ownCloud Web**: ownCloud Web UI 8.0.0 - **oCIS**: Infinite Scale 5.0.0-RC4
Firefox
marked library rendered the correct elements. It looks like the revealjs library does something that changes the parsed elements.
marked
revealjs
Is there an existing issue for this?
Describe the bug
If a presentation contains a list with multiline codeblocks inside of the list but there is a space in an empty line before the list, it get seperated
Steps To Reproduce
see the output of this presentation:
point two
!Note that there is a single space in the first empty line!
Expected Behavior
one list (
ol
element) should be generatedActual Behavior
two
ol
elements are generated:point one
a=a+b;
point two
a=a+b;
Environment
What browsers are you seeing the problem on?
Firefox