-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Unexpected ordered list render result #918
Comments
try this:
|
@Jiang-Xuan It is a viable workaround. However what I'm looking for is not workaround. The key point here is that it treat the same string differently on server or on client |
Have a look at https://runkit.com/embed/5byhgmo4b53i. |
Perhaps the space behind the '\n' affects the result. |
@Jiang-Xuan Oh great, now we have three kind of output here. My server gave me something strange,now this one is giving out even stranger result |
See #982 |
I'm using marked as markdown parser for my personal blogging site. I found that when treating ordered list it behaves differently on server-side and client-side
A client-side real-time markdown previewer like this one:
A server-side markdown renderer using default config:
var parsedContent = marked(content)
Use markdown string like the following as input:
1. This is a markdown string \n * to show that something goes wrong
That string should be rendered like the following both on client-side and server side
That string would render right result on client-side using Chrome browser version 58
On server, the render result was incorrect, what the server actually gave was:
The text was updated successfully, but these errors were encountered: