protected override void Write(LatexRenderer renderer, HeadingBlock obj) { var headingText = obj.Level > 0 && obj.Level <= HeadingTexts.Length ? HeadingTexts[obj.Level - 1] : obj.Level.ToString(CultureInfo.InvariantCulture); renderer.Write("\n\\").Write(headingText) /*.WriteAttributes(obj)*/.Write("{"); renderer.WriteLeafInline(obj); renderer.Write("}\n") /*.Write(headingText).WriteLine(">")*/; }
protected override void Write(LatexRenderer renderer, ParagraphBlock obj) { if (!renderer.ImplicitParagraph) { if (!renderer.IsFirstInContainer) { renderer.EnsureLine(); } //renderer.Write("\n")/*.WriteAttributes(obj).Write(">")*/; } renderer.WriteLeafInline(obj); if (!renderer.ImplicitParagraph) { renderer.Write("\n"); //renderer.WriteLine("</p>"); } }