Esempio n. 1
0
        public IComment Parse(XmlNode content, bool first, bool last)
        {
            // strip paragraph if there's only one
            if (first && last)
            {
                return new InlineText(PrepareText(content.InnerText, true, true));
            }

            Paragraph paragraph = new Paragraph();

            foreach (var child in parser.Parse(content.ChildNodes))
                paragraph.AddChild(child);

            return paragraph;
        }