public string Render_StringWithRelativeLinksGiven_TagsAreReplaced(string input, string baseUrl) { var markdown = new Markdown(baseUrl: baseUrl); var testRenderer = new MdRenderer(markdown); return(testRenderer.Render(input)); }
public string Render_StyleSettedGiven_TagsAreReplacedWithStyle(string input, string style) { var markdown = new Markdown(style); var testRenderer = new MdRenderer(markdown); return(testRenderer.Render(input)); }
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); }
public void SetUp() { var language = new Markdown(); renderer = new MdRenderer(language); }