mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[Question] TextWriter.NewLine is hard-coded to '\n' even when running on Windows
#194
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @augustoproiete on GitHub (Feb 20, 2018).
Hello!
Quick question: Is there a reason to always uses
\nfor line-breaks instead ofEnvironment.NewLine, or is just preference?Markdown files will typically contain fragments of content that - after being converted to HTML - are likely added as content to an HTML template (which itself has line-breaks), which can cause mixed line-endings if the HTML template uses
\r\n.@Kryptos-FR commented on GitHub (Feb 20, 2018):
This should probably be an option (with a decent default value, like
Environment.NewLine) so as to accommodate all scenarios.@augustoproiete commented on GitHub (Feb 21, 2018):
@Kryptos-FR I agree that this should be configurable. I've submitted PR #214 to address that.
I'm curious on why
Environment.NewLineis not the default, though...@xoofx commented on GitHub (Apr 4, 2018):
Thanks, PR #214 is merged, will publish a new package soon