예제 #1
0
        private Markdown GetSetupMarkdown()
        {
            var toReturn = new Markdown();

            toReturn.AddLinkDefinition(new LinkDefinition("link1", "url.com", "title"));
            toReturn.AddLinkDefinition(new LinkDefinition("link2", "url.com"));
            toReturn.AddLinkDefinition(new LinkDefinition("img1", "url.com/image.png", "title"));
            toReturn.AddLinkDefinition(new LinkDefinition("img2", "url.com/image.png"));
            return(toReturn);
        }
예제 #2
0
        public void SetUp()
        {
            m = new Markdown();
            m.AddLinkDefinition(new LinkDefinition("link1", "url.com", "title"));
            m.AddLinkDefinition(new LinkDefinition("link2", "url.com"));
            m.AddLinkDefinition(new LinkDefinition("img1", "url.com/image.png", "title"));
            m.AddLinkDefinition(new LinkDefinition("img2", "url.com/image.png"));

            s = new SpanFormatter(m);
        }