예제 #1
0
        // 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));
        }
예제 #2
0
        // Parsers the text content to a FormattedString
        protected void ParseContent(string content)
        {
            IEnumerable <MarkdownParser.MarkdownValue> markdownValues = MarkdownParser.ParseMarkdown(content);

            Content = XamarinParser.RenderFormattedString(markdownValues);
        }