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

Unordered lists have line break, possible regression? #121

Open
andrewlytle opened this issue Sep 30, 2021 · 6 comments
Open

Unordered lists have line break, possible regression? #121

andrewlytle opened this issue Sep 30, 2021 · 6 comments

Comments

@andrewlytle
Copy link

I am experiencing the same issue described in #52

When I create a bullet list, like this:

- level 1
    - level 2a
    - level 2b
        - level 3

It renders like this:

<ul>
<li>level 1

<ul>
<li>level 2a</li>
<li>level 2b

<ul>
<li>level 3</li>
</ul></li>
</ul></li>
</ul>

But I'm running the most recent release:

mark --version
6.2
@harvzor
Copy link

harvzor commented Feb 11, 2022

Also in 8.0.

@JAndritsch
Copy link
Contributor

JAndritsch commented Apr 13, 2022

Seeing the same thing in 8.0.

This Markdown:

* A1
    * B1
        * C1
        * C2
    * B2
        * C3
        * C4
    * B3
* A2

Produces this result:

Screen Shot 2022-04-13 at 8 52 36 AM

@JAndritsch
Copy link
Contributor

JAndritsch commented Apr 13, 2022

If you try to use HTML instead, you'll get a 400 response from the API because it seems to be interpreting the tabs as code.

For example, this produces a 400:

<ul>
    <li>A1
        <ul>
            <li>B1
                <ul>
                    <li>C1</li>
                    <li>C2</li>
                </ul>
            </li>
            <li>B2
                <ul>
                    <li>C3</li>
                    <li>C4</li>
                </ul>
            </li>
        </ul>
    </li>
    <li>A2</li>
</ul>

But if you condense it all so that nested items are on one line and there are no tabs, it works:

<ul><li>A1<ul><li>B1<ul><li>C1</li><li>C2</li></ul></li><li>B2<ul><li>C3</li><li>C4</li></ul></li></ul></li><li>A2</li></ul>

You'll also want to make sure you remove any spaces between the elements, or else Confluence might end up creating a list item for &nbsp;.

Result:

Screen Shot 2022-04-13 at 9 03 20 AM

@creiht
Copy link

creiht commented May 9, 2022

I've run into this same issue myself, specifically with nested lists similar to the examples above.

@gshel
Copy link

gshel commented Nov 17, 2022

👋 Hey all, I encountered a similar issue in v8.4 which I was able to resolve with some adjustments to my markdown file.

Not ideal:

  • rendering: image
  • markdown: image

Better, notice the line break:

  • rendering: image
  • markdown: image

@jmgranja
Copy link

Me too!
Just as described by @gshel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants