-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Updates to preserve blank line after header #319 * Updates to preserve blank line after header for examples and parameters * Updates to preserve parameter, input, output and to remove trailing line breaks related links * Avoid adding 2 extra lines after parameter body
- Loading branch information
1 parent
4ca79b2
commit 16a5f68
Showing
27 changed files
with
713 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Markdown.MAML.Model.Markdown | ||
{ | ||
/// <summary> | ||
/// A section of text with formatting options. | ||
/// </summary> | ||
public sealed class SectionBody | ||
{ | ||
public SectionBody(string text, SectionFormatOption formatOption) | ||
{ | ||
Text = text; | ||
FormatOption = formatOption; | ||
} | ||
|
||
public SectionBody(string text) | ||
: this(text, SectionFormatOption.None) | ||
{ } | ||
|
||
/// <summary> | ||
/// The text of the section body. | ||
/// </summary> | ||
public string Text { get; private set; } | ||
|
||
/// <summary> | ||
/// Additional options that determine how the section will be formated when rendering markdown. | ||
/// </summary> | ||
public SectionFormatOption FormatOption { get; private set; } | ||
|
||
public override string ToString() | ||
{ | ||
return Text; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Markdown.MAML.Model.Markdown | ||
{ | ||
/// <summary> | ||
/// Define options that determine how sections will be formated when rendering markdown. | ||
/// </summary> | ||
[Flags()] | ||
public enum SectionFormatOption : byte | ||
{ | ||
None = 0, | ||
|
||
/// <summary> | ||
/// A line break should be added after the section header. | ||
/// </summary> | ||
LineBreakAfterHeader = 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.