示例#1
0
        protected override void Write(PPTXRenderer renderer, CodeBlock obj)
        {
            renderer.PushBlockSetting(renderer.Options.Code);

            renderer.Write(" ");
            renderer.WriteReturn();
            renderer.WriteLeafRawLines(obj);
            renderer.WriteReturn();
            renderer.Write(" ");

            renderer.PopBlockSetting();

            renderer.EndTextArea();
        }
        protected override void Write(PPTXRenderer renderer, LinkReferenceDefinition linkDef)
        {
            renderer.StartTextArea();
            renderer.Write('[');
            renderer.Write(linkDef.Label);
            renderer.Write("]: ");

            renderer.Write(linkDef.Url);

            if (linkDef.Title != null)
            {
                renderer.Write(" \"");
                renderer.Write(linkDef.Title.Replace("\"", "\\\""));
                renderer.Write('"');
            }
            renderer.EndTextArea();
        }