| 12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Larkdown.Parser.Ast
- {
- public class ParagraphNode : Node
- {
- public string Text { get; private set; }
- public ParagraphNode()
- : base(nameof(ParagraphNode))
- {
- Text = String.Empty;
- }
- public ParagraphNode AddText(string text)
- {
- Text += text;
- return this;
- }
- public bool IsEmpty()
- {
- return String.IsNullOrEmpty(Text);
- }
- }
- }
|