highmark-markdown 0.0.288 → 0.0.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import PlainTextMarkdownNode from "../node/markdown/plainText";
7
7
  import { EMPTY_STRING } from "../constants";
8
8
  import { contentFromMarkdownNodes } from "./content";
9
9
 
10
- const { clear } = arrayUtilities;
10
+ const { push, clear } = arrayUtilities;
11
11
 
12
12
  export function htmlFromChildNodes(childNodes, context, leftTrimmed) {
13
13
  let html;
@@ -141,11 +141,11 @@ export function domElementsFromChildNodes(childNodes, context, leftTrimmed) {
141
141
  domElements.push(domElement);
142
142
  }
143
143
 
144
- const domElement = markdownNode.createDOMElement(context);
144
+ markdownNode.createDOMElement(context);
145
145
 
146
- if (domElement !== null) {
147
- domElements.push(domElement);
148
- }
146
+ const markdownNodeDOMElements = markdownNode.getDOMElements();
147
+
148
+ push(domElements, markdownNodeDOMElements);
149
149
  }
150
150
  }
151
151