Title: How to ensure MarkdownRenderer uses the correct line separator? · Issue #442 · commonmark/commonmark-java · GitHub
Open Graph Title: How to ensure MarkdownRenderer uses the correct line separator? · Issue #442 · commonmark/commonmark-java
X Title: How to ensure MarkdownRenderer uses the correct line separator? · Issue #442 · commonmark/commonmark-java
Description: Hello, thanks for this great library. It really does a great job. I am woking on Windows and observer that what the reader reads "CRLF" from the input, the MarkdownRenderer always uses "CR" (0xa) which result in unwanted whitespace diffs...
Open Graph Description: Hello, thanks for this great library. It really does a great job. I am woking on Windows and observer that what the reader reads "CRLF" from the input, the MarkdownRenderer always uses "CR" (0xa) w...
X Description: Hello, thanks for this great library. It really does a great job. I am woking on Windows and observer that what the reader reads "CRLF" from the input, the MarkdownRenderer always uses &q...
Opengraph URL: https://github.com/commonmark/commonmark-java/issues/442
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to ensure MarkdownRenderer uses the correct line separator?","articleBody":"Hello,\nthanks for this great library. It really does a great job. I am woking on Windows and observer that what the reader reads \"CRLF\" from the input, the MarkdownRenderer always uses \"CR\" (0xa) which result in unwanted whitespace diffs in my Github repo.\n\nIs there a way to configure the instances, so they use the OS's line separator?\n\n```\n printWriter = new PrintWriter(outputFile);\n\t\tvar node = markupFile.getNode();\n\t\tvar builder = MarkdownRenderer.builder();\n\t\tvar markdownRenderer = builder.build();\n\t\tmarkdownRenderer.render(node, printWriter);\n\n\t\tprintWriter.close();\n```\n\nI check the method defintion is saw is it used Appendable. And as there is \"println\" there, that may cause the problem, I think.\n\nThanks, Peter.","author":{"url":"https://github.com/peterdell","@type":"Person","name":"peterdell"},"datePublished":"2026-07-27T21:35:19Z","url":"https://github.com/commonmark/commonmark-java/issues/442"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05142ae7-b73b-a189-5a0f-6d196b25ea02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B958:23AC0D:2CEB23:3CD2AC:6AFBB24A |
| html-safe-nonce | 8c277d2c0e92e7478da5fce9c6c4e96710dc1bceaec529449c44497271498b00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTU4OjIzQUMwRDoyQ0VCMjM6M0NEMkFDOjZBRkJCMjRBIiwidmlzaXRvcl9pZCI6IjU3ODc1NTk5NjMyMDI5MjUxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f932e3794175019c1d032c363fd36cd37dfe61b4c3a17c46fccdee1277e55529 |
| hovercard-subject-tag | issue:4992530826 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commonmark/commonmark-java/442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8e94e4159e45d148f5b14c028d5cc8cec92012d4bbf7e94081f6fd1928a7b64/commonmark/commonmark-java/issues/442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8e94e4159e45d148f5b14c028d5cc8cec92012d4bbf7e94081f6fd1928a7b64/commonmark/commonmark-java/issues/442 |
| og:image:alt | Hello, thanks for this great library. It really does a great job. I am woking on Windows and observer that what the reader reads "CRLF" from the input, the MarkdownRenderer always uses "CR" (0xa) w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peterdell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/commonmark/commonmark-java git https://github.com/commonmark/commonmark-java.git |
| octolytics-dimension-user_id | 8661225 |
| octolytics-dimension-user_login | commonmark |
| octolytics-dimension-repository_id | 39477878 |
| octolytics-dimension-repository_nwo | commonmark/commonmark-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 39477878 |
| octolytics-dimension-repository_network_root_nwo | commonmark/commonmark-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width