Skip to content

Commit

Permalink
fix: MarkdownInfo.ToString() should be HTML ( Fixes PowerShell#28 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Feb 23, 2024
1 parent 8be5371 commit f411067
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MarkdownConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ public class MarkdownInfo
/// Gets the AST of the Markdown string.
/// </summary>
public Markdig.Syntax.MarkdownDocument Tokens { get; internal set; }


/// <summary>
/// Gets the converted markdown as a string.
/// </summary>
public string ToString() {
return this.Html;
}
}

/// <summary>
Expand Down

0 comments on commit f411067

Please sign in to comment.