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

Each line is surrounded by p tags when ignoring the list #2869

Closed
kokeman opened this issue Jul 5, 2023 · 2 comments
Closed

Each line is surrounded by p tags when ignoring the list #2869

kokeman opened this issue Jul 5, 2023 · 2 comments
Labels

Comments

@kokeman
Copy link

kokeman commented Jul 5, 2023

Marked version: 5.1.0

What I have tried

  • I want to ignore list conversions.
  • I set it to ignore list conversion by referring to this post.

What is problem

  • Instead of enclosing the entire list with p tags, each line is wrapped with p tags.

Question

  • Why is this happening?
  • Is it possible to set the entire list part to be enclosed in p tags without changing the issue_text?

Demo

https://jsfiddle.net/9wxLgvuo/3/

@UziTech
Copy link
Member

UziTech commented Jul 7, 2023

I think this is because the paragraph rule by default stops at a list. You will need to change the paragraph rule as well to get it working how you want.

@kokeman
Copy link
Author

kokeman commented Jul 7, 2023

I solved it by removing the list regex from the paragraph regex. Thank you very match.

@kokeman kokeman closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants