-
Notifications
You must be signed in to change notification settings - Fork 221
CW's Markdown engine gives inconsistent results between preview and actual result #1640
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
Comments
Related: #1617 |
I think the preview uses a client side engine Marked and the actual one is by a server side engine. |
This will be fixed with the huge updates I've been working on for the past month. The Markdown engine on the server side will be Common Mark.
|
This comment has been minimized.
This comment has been minimized.
How many spaces are there for the second level? In this case, I think the preview is wrong.
on GitHub comment. If you indent the second level with 4 spaces, you should get Markdown preview uses a different engine on the client side so the best I can do is to find options to make it agree with the server side. And I haven't looked into this yet. |
I used indentations with 2 whitespaces |
I've updated to the latest version of marked. They're still working on becoming fully compatible with CommonMark spec, but it should be much better than the version we were using. |
An extension to #1441.
I'm not sure how is this even possible, but CW's Markdown engine apparently gives different results in "preview my comment" mode and in actual render, which I've encountered at least several times. One of the simplest examples is this:
In Github:
In CW preview mode (correct):

In CW actual render (incorrect):

The text was updated successfully, but these errors were encountered: