     ///
     func enumerateParagraphNodes(in style: ParagraphStyle, block: ((ElementNode) -> Void)) {
         if style.blockquote != nil {
-            block( ElementNode(type: .blockquote) )
+            let node = ElementNode(type: .blockquote)
+            block(node)
         }
 
         if style.htmlParagraph != nil {
-            block( ElementNode(type: .p) )
+            let node = ElementNode(type: .p)
+            block(node)
         }
 
         if style.headerLevel > 0 {
-            let header = DOMString.elementTypeForHeaderLevel(style.headerLevel) ?? .h1
-            block( ElementNode(type: header) )
+            let type = DOMString.elementTypeForHeaderLevel(style.headerLevel) ?? .h1
+            let node = ElementNode(type: type)
+            block(node)
         }
 
         if !style.textLists.isEmpty {
-            block( ElementNode(type: .li) )
+            let node = ElementNode(type: .li)
+            block(node)
         }
 
         for list in style.textLists {
-            if list.style == .ordered {
-                block( ElementNode(type: .ol) )
-            } else {
-                block( ElementNode(type: .ul) )
-            }
+            let node = list.style == .ordered ? ElementNode(type: .ol) : ElementNode(type: .ul)
+            block(node)
         }
     }
 

                }

                let source = StringAttribute(name: "href", value: url.absoluteString)
                block( ElementNode(type: .a, attributes: [source]) )

            case NSStrikethroughStyleAttributeName:
                block( ElementNode(type: .strike) )

            case NSUnderlineStyleAttributeName:
                block( ElementNode(type: .u) )

            default:
                break


    ///
    ///
    func lineAttachmentToNodes(_ lineAttachment: LineAttachment) -> [Node] {
        let node = ElementNode(type: .hr)
        return [node]
    }


    ///
    ///
    func commentAttachmentToNodes(_ attachment: CommentAttachment) -> [Node] {
        let node = CommentNode(text: attachment.text)
        return [node]
    }


