-
Notifications
You must be signed in to change notification settings - Fork 604
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
May it not work properly with \n line terminators ? #522
Comments
Here is the minimal runnable code:
|
Interestingly, I have almost the exact opposite situation. I'm dealing with some data stored with Windows/DOS-style EOL (
After the swap:
Observe how the paragraphs only exist with the Relevant chunk: // post.ContentFiltered contains raw markdown.
input := []byte(strings.Replace(post.ContentFiltered, "\r\n", "\n", -1))
output := blackfriday.Run(input)
glog.Infof("INPUT: %s", string(input))
glog.Infof("INPUT HEX: %s", hex.EncodeToString(output))
glog.Infof("OUTPUT: %s", string(output)) |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
here are two types of code:
returns
however, the code:
returns the good format:
The text was updated successfully, but these errors were encountered: