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

Lists not exitable #357

Closed
Flemmli97 opened this issue Jan 5, 2024 · 3 comments
Closed

Lists not exitable #357

Flemmli97 opened this issue Jan 5, 2024 · 3 comments

Comments

@Flemmli97
Copy link

When writing a list you cannot "exit" the list anymore
Example

* A
* B
C

will output to something like

* A
* B C

You can only add new lines with further list items.

calling it with simply

markdown_to_html(
        "* A\n* B\nC",
        &comrak::Options::default(),
    )
@digitalmoksha
Copy link
Collaborator

That's how the syntax of CommonMark works. You will need a blank line after the last item to escape the list.

See how it behaves in the CommonMark dingus, https://spec.commonmark.org/dingus/?text=*%20A%0A*%20B%0AC%0A

@gjtorikian
Copy link
Collaborator

Since this complies to the spec, I am closing this issue.☮️

@kivikakk
Copy link
Owner

kivikakk commented Jan 5, 2024

Thank you all! 🤍

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

4 participants