Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: a list with a code-block inside of the list get messed up by a space before the list #42

Open
1 task done
individual-it opened this issue Mar 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@individual-it
Copy link
Member

Is there an existing issue for this?

  • I have searched for an existing issue

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:

 
1. point one
    ```
    a=a+b;
    ```
2. point two

    ```
    a=a+b;
    ```

!Note that there is a single space in the first empty line!

Expected Behavior

one list (ol element) should be generated

Actual Behavior

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:
  1. point one

    a=a+b;
  2. point two

    a=a+b;

Environment

- **OS**: Ubuntu 22.04
- **ownCloud Web**: ownCloud Web UI 8.0.0
- **oCIS**: Infinite Scale 5.0.0-RC4

What browsers are you seeing the problem on?

Firefox

@individual-it individual-it added the bug Something isn't working label Mar 5, 2024
@saw-jan
Copy link
Member

saw-jan commented Sep 9, 2024

Expected Actual
Screenshot from 2024-09-09 14-42-54 Screenshot from 2024-09-09 14-43-15

@saw-jan
Copy link
Member

saw-jan commented Sep 9, 2024

marked library rendered the correct elements. It looks like the revealjs library does something that changes the parsed elements.

@saw-jan saw-jan self-assigned this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants