@lexical/markdown
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -509,3 +509,3 @@ /** | ||
transformersByTag[tag] = transformer; | ||
const tagRegExp = tag.replace(/(\*|\^)/g, '\\$1'); | ||
const tagRegExp = tag.replace(/(\*|\^|\+)/g, '\\$1'); | ||
openTagsRegExp.push(tagRegExp); | ||
@@ -512,0 +512,0 @@ |
@@ -20,3 +20,3 @@ /** | ||
function ia(a,b){var c=a.match(b.openTagsRegExp);if(null==c)return null;for(let f of c){var d=f.replace(/^\s/,"");c=b.fullMatchRegExpByTag[d];if(null!=c&&(c=a.match(c),d=b.transformersByTag[d],null!=c&&null!=d)){if(!1!==d.intraword)return c;var {index:e=0}=c;d=a[e-1];e=a[e+c[0].length];if(!(d&&!J.test(d)||e&&!J.test(e)))return c}}return null} | ||
function ha(a){let b={},c={},d=[];for(let e of a){({tag:a}=e);b[a]=e;let f=a.replace(/(\*|\^)/g,"\\$1");d.push(f);c[a]=P||Q?new RegExp(`(${f})(?![${f}\\s])(.*?[^${f}\\s])${f}(?!${f})`):new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`)}return{fullMatchRegExpByTag:c,openTagsRegExp:new RegExp((P||Q?"":"(?<![\\\\])")+"("+d.join("|")+")","g"),transformersByTag:b}} | ||
function ha(a){let b={},c={},d=[];for(let e of a){({tag:a}=e);b[a]=e;let f=a.replace(/(\*|\^|\+)/g,"\\$1");d.push(f);c[a]=P||Q?new RegExp(`(${f})(?![${f}\\s])(.*?[^${f}\\s])${f}(?!${f})`):new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`)}return{fullMatchRegExpByTag:c,openTagsRegExp:new RegExp((P||Q?"":"(?<![\\\\])")+"("+d.join("|")+")","g"),transformersByTag:b}} | ||
function U(a,b,c){let d=c.length;for(;b>=d;b--){let e=b-d;if(V(a,e,c,0,d)&&" "!==a[e+d])return e}return-1}function V(a,b,c,d,e){for(let f=0;f<e;f++)if(a[b+f]!==c[d+f])return!1;return!0} | ||
@@ -23,0 +23,0 @@ let W=a=>(b,c,d)=>{d=a(d);d.append(...c);b.replace(d);d.select(0,0)},X=a=>(b,c,d)=>{var e=b.getPreviousSibling();const f=A.$createListItemNode("check"===a?"x"===d[3]:void 0);A.$isListNode(e)&&e.getListType()===a?(e.append(f),b.remove()):(e=A.$createListNode(a,"number"===a?Number(d[2]):void 0),e.append(f),b.replace(e));f.append(...c);f.select(0,0);(b=Math.floor(d[1].length/4))&&f.setIndent(b)},Y=(a,b,c)=>{const d=[];var e=a.getChildren();let f=0;for(const k of e)if(A.$isListItemNode(k)){if(1===k.getChildrenSize()&& |
@@ -11,14 +11,14 @@ { | ||
"license": "MIT", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"main": "LexicalMarkdown.js", | ||
"peerDependencies": { | ||
"lexical": "0.7.4" | ||
"lexical": "0.7.5" | ||
}, | ||
"dependencies": { | ||
"@lexical/utils": "0.7.4", | ||
"@lexical/code": "0.7.4", | ||
"@lexical/text": "0.7.4", | ||
"@lexical/rich-text": "0.7.4", | ||
"@lexical/list": "0.7.4", | ||
"@lexical/link": "0.7.4" | ||
"@lexical/utils": "0.7.5", | ||
"@lexical/code": "0.7.5", | ||
"@lexical/text": "0.7.5", | ||
"@lexical/rich-text": "0.7.5", | ||
"@lexical/list": "0.7.5", | ||
"@lexical/link": "0.7.5" | ||
}, | ||
@@ -25,0 +25,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62282
+ Added@lexical/clipboard@0.7.5(transitive)
+ Added@lexical/code@0.7.5(transitive)
+ Added@lexical/html@0.7.5(transitive)
+ Added@lexical/link@0.7.5(transitive)
+ Added@lexical/list@0.7.5(transitive)
+ Added@lexical/rich-text@0.7.5(transitive)
+ Added@lexical/selection@0.7.5(transitive)
+ Added@lexical/table@0.7.5(transitive)
+ Added@lexical/text@0.7.5(transitive)
+ Added@lexical/utils@0.7.5(transitive)
+ Addedlexical@0.7.5(transitive)
- Removed@lexical/clipboard@0.7.4(transitive)
- Removed@lexical/code@0.7.4(transitive)
- Removed@lexical/html@0.7.4(transitive)
- Removed@lexical/link@0.7.4(transitive)
- Removed@lexical/list@0.7.4(transitive)
- Removed@lexical/rich-text@0.7.4(transitive)
- Removed@lexical/selection@0.7.4(transitive)
- Removed@lexical/table@0.7.4(transitive)
- Removed@lexical/text@0.7.4(transitive)
- Removed@lexical/utils@0.7.4(transitive)
- Removedlexical@0.7.4(transitive)
Updated@lexical/code@0.7.5
Updated@lexical/link@0.7.5
Updated@lexical/list@0.7.5
Updated@lexical/rich-text@0.7.5
Updated@lexical/text@0.7.5
Updated@lexical/utils@0.7.5