Esempio n. 1
0
        public override void WriteTo(MarkdownWriter writer)
        {
            if (content is string s)
            {
                writer.WriteBulletItem(s);
            }
            else
            {
                foreach (MElement element in Elements())
                {
                    writer.WriteStartBulletItem();

                    if (element is MBulletItem item)
                    {
                        item.WriteContentTo(writer);
                    }
                    else
                    {
                        writer.Write(element);
                    }

                    writer.WriteEndBulletItem();
                }

                writer.WriteLine();
            }
        }