// Parsers a markdown string to html public static HtmlString ParseText(string text) { IEnumerable <MarkdownParser.MarkdownValue> markdown = MarkdownParser.ParseMarkdown(text); string result = MarkdownParser.MarkdownToHTML(markdown); return(new HtmlString(result)); }
// Parsers the text content to a FormattedString protected void ParseContent(string content) { IEnumerable <MarkdownParser.MarkdownValue> markdownValues = MarkdownParser.ParseMarkdown(content); Content = XamarinParser.RenderFormattedString(markdownValues); }