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

Markdown Parser is broken while using --- in article content #9137

Open
stuffy-idler opened this issue Mar 20, 2024 · 5 comments
Open

Markdown Parser is broken while using --- in article content #9137

stuffy-idler opened this issue Mar 20, 2024 · 5 comments
Labels
Bug need-more-info This issue does not have enough information to start working on it.

Comments

@stuffy-idler
Copy link

Describe the bug

Usage of --- in article content brakes Markdown Parser, so editor shows empty text (to be precise, it shows placeholder) despite the article content actually contains data and you can see it on Preview page.
DevTools prints the error: "Token type hr not supported by Markdown parser"

To Reproduce

  1. Create new article with content containing ---
  2. Right after 1st article automatic saving, content will be dropped, and parsing error will appear in DevTools

Expected behavior

No response

Environment

Kubernetes

Cloud Provider

None

Platform

Browser

Operating system

No response

Browser and version

No response

Docker (if applicable)

No response

Additional context

No response

Copy link

linear bot commented Mar 20, 2024

@pranavrajs
Copy link
Member

@stuffy-idler Which version of Chatwoot are you using? This was fixed in a couple of releases back.

@pranavrajs pranavrajs added the need-more-info This issue does not have enough information to start working on it. label Mar 20, 2024
@stuffy-idler
Copy link
Author

stuffy-idler commented Mar 20, 2024

@stuffy-idler Which version of Chatwoot are you using? This was fixed in a couple of releases back.

At first time it occurred on v3.6, then we've tried to update to 3.7.0, but it didn't help to resolve the issue

Copy link
Member

@stuffy-idler Is it only happening in article editor or does it happen across other editors as well?

@stuffy-idler
Copy link
Author

@stuffy-idler Is it only happening in article editor or does it happen across other editors as well?

I've just tried editor of private notes (I didn't found any other editors with markdown), and it seems that there is no such issue, but actually I'm not sure it's valid case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug need-more-info This issue does not have enough information to start working on it.
Projects
None yet
Development

No branches or pull requests

2 participants