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

[nextgen-editor] Editor messes up valid Markdown (element within list) #308

Open
yankl opened this issue Sep 23, 2022 · 1 comment
Open
Assignees
Labels
nextgen-editor NextGen Editor plugin

Comments

@yankl
Copy link

yankl commented Sep 23, 2022

In Markdown it's possible to add an element within a list, as described here.

The following code is taken directly from the above Markdown guide:

* This is the first list item.
* Here's the second list item.

    I need to add another paragraph below the second list item.

* And here's the third list item.

This Markdown is converted correctly in Grav to a list with one two-paragraph bullet point.

However, if I view a page with this code in NextGen, then save, the markdown is converted to the following:

This is the first list item.

Here's the second list item.

I need to add another paragraph below the second list item.

And here's the third list item.

Namely, the fact that there was once a list there is lost entirely. A similar thing happens if I try to add a different element, such as the blockquote example which comes next in the guide:

* This is the first list item.
* Here's the second list item.

    > A blockquote would look great below the second list item.

* And here's the third list item.

becomes:

This is the first list item.

Here's the second list item.

> A blockquote would look great below the second list item.

And here's the third list item.

Grav v1.7.35 - Admin v1.10.35 - NextGen v1.1.12

@yankl yankl added the nextgen-editor NextGen Editor plugin label Sep 23, 2022
@ghost
Copy link

ghost commented Sep 30, 2022

Having a similar issue here. It is cutting white space & changing the format of line breaks for me.

How I want it:

[h6]Grav Links  [/h6]
[svg-icon="cloud-storm" class="h-4 text-red-600 align-top" /] [GRAV Admin](/admin)  
[svg-icon="brand-tabler" class="h-4 text-blue-600 align-top" /] [Tabler Icons](https://tabler-icons.io/)  

What it converts it to:

[h6]
Grav Links
[/h6]

[svg-icon="cloud-storm" class="h-4 text-red-600 align-top" /][GRAV Admin](/admin) [](/admin)  
[svg-icon="brand-tabler" class="h-4 text-blue-600 align-top" /][Tabler Icons](https://tabler-icons.io/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nextgen-editor NextGen Editor plugin
Projects
None yet
Development

No branches or pull requests

2 participants