Exemplo n.º 1
0
 public static bool IsBlockElement(this DmlElementType self)
 {
     return((new DmlElementType[]
     {
         DmlElementType.Blockquote,
         DmlElementType.CodeBlock,
         DmlElementType.Document,
         DmlElementType.Header,
         DmlElementType.List,
         DmlElementType.ThematicBreak,
         DmlElementType.Paragraph,
         DmlElementType.Preformatted,
     }).Contains(self));
 }
Exemplo n.º 2
0
 public static bool IsInlineElement(this DmlElementType self)
 {
     return((new DmlElementType[]
     {
         DmlElementType.Custom,
         DmlElementType.InlineCode,
         DmlElementType.Group,
         DmlElementType.Image,
         DmlElementType.Italic,
         DmlElementType.Link,
         DmlElementType.LineBreak,
         DmlElementType.ListItem,
         DmlElementType.ReferenceLink,
         DmlElementType.Reference,
         DmlElementType.Strike,
         DmlElementType.Strong,
         DmlElementType.Text,
         DmlElementType.Underlined
     }).Contains(self));
 }