public AdfRenderer(AdfDocument document) { Document = document; _stack.Push(document); ObjectRenderers.Add(new HeadingRenderer()); ObjectRenderers.Add(new ParagraphRenderer()); ObjectRenderers.Add(new TextRenderer()); ObjectRenderers.Add(new LineBreakRenderer()); }
public void Test3() { var pipeline = new MarkdownPipelineBuilder() .Use <VariableExtension>() .Build(); var doc = MarkdownParser.Parse("# Hallo\r\n## Test\r\n$(Test)\r\nTest", pipeline); var adf = new AdfDocument(); var renderer = new AdfRenderer(adf); pipeline.Setup(renderer); renderer.Render(doc); }