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

Convert list without <p> tag #384

Open
ghost opened this issue May 19, 2020 · 2 comments
Open

Convert list without <p> tag #384

ghost opened this issue May 19, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented May 19, 2020

Hi,

If you put

- something
- another thing

you get <li><p>something</p></li>
Can you convert lists without paragraph mark instead when it's needed.

@Dagur
Copy link

Dagur commented Jun 19, 2020

I'm also having problems with lists and <p> tags

This

* One
* Two
    * Three
* Four
* Five

gives me

<ul>
<li>One</li>
<li>Two
<ul>
<li>Three</li>
</ul></li>
<li>Four</li>
<li>Five</li>
</ul>

but if I add one newline between

* One
* Two
    * Three

* Four
* Five

I get this

<ul>
<li><p>One</p></li>
<li><p>Two</p>
<ul>
<li>Three</li>
</ul></li>
<li><p>Four</p></li>
<li><p>Five</p></li>
</ul>

Adding another newline removes the <p> tags again

@ghost
Copy link
Author

ghost commented Jun 19, 2020

<p> must put only when you have more than one line. Ex:

* One
* Two
    This is another line. It has 4 spaces
* Three

Should get:

...
<li><p>Two</p><p>This is another line. It has 4 spaces</p></li>
<li>Three</li>
...

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

1 participant