@lexical/markdown
Advanced tools
Comparing version 0.12.6 to 0.13.0
@@ -137,3 +137,3 @@ /** | ||
// Replace trimmed version of textContent ensuring surrounding whitespace is not modified | ||
return textContent.replace(frozenString, output); | ||
return textContent.replace(frozenString, () => output); | ||
} | ||
@@ -140,0 +140,0 @@ |
@@ -10,3 +10,3 @@ /** | ||
function K(a,b,c){let d=[];a=a.getChildren();a:for(let e of a){for(let f of c)if(a=f.export(e,g=>K(g,b,c),(g,l)=>L(g,l,b)),null!=a){d.push(a);continue a}k.$isLineBreakNode(e)?d.push("\n"):k.$isTextNode(e)?d.push(L(e,e.getTextContent(),b)):k.$isElementNode(e)?d.push(K(e,b,c)):k.$isDecoratorNode(e)&&d.push(e.getTextContent())}return d.join("")} | ||
function L(a,b,c){let d=b.trim(),e=d,f=new Set;for(let l of c){c=l.format[0];let r=l.tag;if(M(a,c)&&!f.has(c)){f.add(c);var g=N(a,!0);M(g,c)||(e=r+e);g=N(a,!1);M(g,c)||(e+=r)}}return b.replace(d,e)} | ||
function L(a,b,c){let d=b.trim(),e=d,f=new Set;for(let l of c){c=l.format[0];let r=l.tag;if(M(a,c)&&!f.has(c)){f.add(c);var g=N(a,!0);M(g,c)||(e=r+e);g=N(a,!1);M(g,c)||(e+=r)}}return b.replace(d,()=>e)} | ||
function N(a,b){let c=b?a.getPreviousSibling():a.getNextSibling();c||(a=a.getParentOrThrow(),a.isInline()&&(c=b?a.getPreviousSibling():a.getNextSibling()));for(;c;){if(k.$isElementNode(c)){if(!c.isInline())break;a=b?c.getLastDescendant():c.getFirstDescendant();if(k.$isTextNode(a))return a;c=b?c.getPreviousSibling():c.getNextSibling()}if(k.$isTextNode(c))return c;if(!k.$isElementNode(c))break}return null}function M(a,b){return k.$isTextNode(a)&&a.hasFormat(b)} | ||
@@ -13,0 +13,0 @@ let O="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,da=O&&"documentMode"in document?document.documentMode:null;O&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);O&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);O&&"InputEvent"in window&&!da?"getTargetRanges"in new window.InputEvent("input"):!1;let P=O&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Q=O&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream; |
@@ -11,14 +11,14 @@ { | ||
"license": "MIT", | ||
"version": "0.12.6", | ||
"version": "0.13.0", | ||
"main": "LexicalMarkdown.js", | ||
"peerDependencies": { | ||
"lexical": "0.12.6" | ||
"lexical": "0.13.0" | ||
}, | ||
"dependencies": { | ||
"@lexical/utils": "0.12.6", | ||
"@lexical/code": "0.12.6", | ||
"@lexical/text": "0.12.6", | ||
"@lexical/rich-text": "0.12.6", | ||
"@lexical/list": "0.12.6", | ||
"@lexical/link": "0.12.6" | ||
"@lexical/utils": "0.13.0", | ||
"@lexical/code": "0.13.0", | ||
"@lexical/text": "0.13.0", | ||
"@lexical/rich-text": "0.13.0", | ||
"@lexical/list": "0.13.0", | ||
"@lexical/link": "0.13.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "repository": { |
63892
+ Added@lexical/clipboard@0.13.0(transitive)
+ Added@lexical/code@0.13.0(transitive)
+ Added@lexical/html@0.13.0(transitive)
+ Added@lexical/link@0.13.0(transitive)
+ Added@lexical/list@0.13.0(transitive)
+ Added@lexical/rich-text@0.13.0(transitive)
+ Added@lexical/selection@0.13.0(transitive)
+ Added@lexical/table@0.13.0(transitive)
+ Added@lexical/text@0.13.0(transitive)
+ Added@lexical/utils@0.13.0(transitive)
+ Addedlexical@0.13.0(transitive)
- Removed@lexical/clipboard@0.12.6(transitive)
- Removed@lexical/code@0.12.6(transitive)
- Removed@lexical/html@0.12.6(transitive)
- Removed@lexical/link@0.12.6(transitive)
- Removed@lexical/list@0.12.6(transitive)
- Removed@lexical/rich-text@0.12.6(transitive)
- Removed@lexical/selection@0.12.6(transitive)
- Removed@lexical/table@0.12.6(transitive)
- Removed@lexical/text@0.12.6(transitive)
- Removed@lexical/utils@0.12.6(transitive)
- Removedlexical@0.12.6(transitive)
Updated@lexical/code@0.13.0
Updated@lexical/link@0.13.0
Updated@lexical/list@0.13.0
Updated@lexical/rich-text@0.13.0
Updated@lexical/text@0.13.0
Updated@lexical/utils@0.13.0