예제 #1
0
        public string Render_StringWithRelativeLinksGiven_TagsAreReplaced(string input, string baseUrl)
        {
            var markdown     = new Markdown(baseUrl: baseUrl);
            var testRenderer = new MdRenderer(markdown);

            return(testRenderer.Render(input));
        }
예제 #2
0
        public string Render_StyleSettedGiven_TagsAreReplacedWithStyle(string input, string style)
        {
            var markdown     = new Markdown(style);
            var testRenderer = new MdRenderer(markdown);

            return(testRenderer.Render(input));
        }
예제 #3
0
        public static void RenderExample(string exampleFileName, string ouputFileName)
        {
            var language = new Markdown();
            var renderer = new MdRenderer(language);

            var text   = File.ReadAllText(exampleFileName);
            var result = renderer.Render(text);

            File.WriteAllText($"{ouputFileName}.html", result);
        }
예제 #4
0
        public void SetUp()
        {
            var language = new Markdown();

            renderer = new MdRenderer(language);
        }