protected override void Write(NormalizeRenderer renderer, HeadingBlock obj) { var headingText = obj.Level > 0 && obj.Level <= 6 ? HeadingTexts[obj.Level - 1] : new string('#', obj.Level); renderer.Write(headingText).Write(' '); renderer.WriteLeafInline(obj); renderer.FinishBlock(renderer.Options.EmptyLineAfterHeading); }
protected override void Write(NormalizeRenderer renderer, ParagraphBlock obj) { renderer.WriteLeafInline(obj); renderer.FinishBlock(!renderer.CompactParagraph); }