Exemplo n.º 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));
        }
Exemplo n.º 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);
        }