protected override void Write(PPTXRenderer renderer, ParagraphBlock obj) { if (obj.Parent is MarkdownDocument) { renderer.PushBlockSetting(renderer.Options.Normal); } renderer.WriteLeafInline(obj); if (obj.Parent is MarkdownDocument) { renderer.PopBlockSetting(); renderer.EndTextArea(); } }
protected override void Write(PPTXRenderer renderer, HeadingBlock obj) { var _block = renderer.Options.Normal; switch (obj.Level) { case 1: _block = renderer.Options.Header1; break; case 2: _block = renderer.Options.Header2; break; } renderer.PushBlockSetting(_block); renderer.StartTextArea(); renderer.WriteLeafInline(obj); renderer.PopBlockSetting(); renderer.EndTextArea(); }