@mdream/js 1.5.5 → 1.5.7

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.
@@ -28,6 +28,8 @@ const TagIdMap = {
28
28
  em: 16,
29
29
  i: 17,
30
30
  del: 18,
31
+ s: 110,
32
+ strike: 111,
31
33
  sub: 19,
32
34
  sup: 20,
33
35
  ins: 21,
@@ -120,9 +122,12 @@ const TagIdMap = {
120
122
  datalist: 108,
121
123
  optgroup: 109
122
124
  };
125
+ function isInsideRawHtmlBlock(depthMap) {
126
+ return Boolean(depthMap[2] || depthMap[3] || depthMap[100] || depthMap[101] || depthMap[99] || depthMap[98]);
127
+ }
123
128
  const NO_SPACING = [0, 0];
124
129
  const DEFAULT_BLOCK_SPACING = [2, 2];
125
- const BLOCKQUOTE_SPACING = [1, 1];
130
+ const BLOCKQUOTE_SPACING = [2, 2];
126
131
  const LIST_ITEM_SPACING = [1, 0];
127
132
  const TABLE_ROW_SPACING = [0, 1];
128
- export { BLOCKQUOTE_SPACING, DEFAULT_BLOCK_SPACING, ELEMENT_NODE, LIST_ITEM_SPACING, NO_SPACING, NodeEventEnter, NodeEventExit, TABLE_ROW_SPACING, TAG_H1, TAG_H2, TAG_H3, TAG_H4, TAG_H5, TAG_H6, TEXT_NODE, TagIdMap };
133
+ export { BLOCKQUOTE_SPACING, DEFAULT_BLOCK_SPACING, ELEMENT_NODE, LIST_ITEM_SPACING, NO_SPACING, NodeEventEnter, NodeEventExit, TABLE_ROW_SPACING, TAG_H1, TAG_H2, TAG_H3, TAG_H4, TAG_H5, TAG_H6, TEXT_NODE, TagIdMap, isInsideRawHtmlBlock };