Esempio n. 1
0
        public RenderedMarkdownResult GetHtmlFromMarkdown(string markdownString)
        {
            if (markdownString == null)
            {
                throw new ArgumentNullException(nameof(markdownString));
            }

            if (_features.IsMarkdigMdRenderingEnabled())
            {
                return(GetHtmlFromMarkdownMarkdig(markdownString, 1));
            }
            else
            {
                return(GetHtmlFromMarkdownCommonMark(markdownString, 1));
            }
        }