mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #214] [MERGED] Add ConfigureNewLineExtension markdown extension
#869
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?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/214
Author: @augustoproiete
Created: 2/21/2018
Status: ✅ Merged
Merged: 4/4/2018
Merged by: @xoofx
Base:
master← Head:add-configure-new-line-extension📝 Commits (2)
e2f0f00AddConfigureNewLineExtensionmarkdown extensionc68a488AddConfigureNewLineextension method toMarkdownPipelineBuilder📊 Changes
2 files changed (+47 additions, -0 deletions)
View changed files
➕
src/Markdig/Extensions/TextRenderer/ConfigureNewLineExtension.cs(+34 -0)📝
src/Markdig/MarkdownExtensions.cs(+13 -0)📄 Description
This PR adds an extension which allows devs to define what string to use for line-endings when writing.
As per my comment in #211,
Markdigalways uses\nfor line-breaks. This extension exposes an easy way to override the default behavior when defining the pipeline.Below is an example on how to define that line-endings should use
Environment.NewLine:ps: This PR builds on #213, which should be merged first.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.