diff --git a/CHANGELOG.md b/CHANGELOG.md index c9e0bf57..e09bd5b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [0.7.0](https://github.com/Tencent/cherry-markdown/compare/v0.6.12...v0.7.0) (2022-04-12) + + +### Features + +* add table wysiwyg v1.0 ([#189](https://github.com/Tencent/cherry-markdown/issues/189)) ([39a5a9e](https://github.com/Tencent/cherry-markdown/commit/39a5a9e68583d59291621f19f66a9424001a9f2a)) +* update unit test ([#188](https://github.com/Tencent/cherry-markdown/issues/188)) ([50d2218](https://github.com/Tencent/cherry-markdown/commit/50d22182d70f533459b2d1a0fdc67cf696ceefbb)) +* 增加表格编辑文档 ([46accca](https://github.com/Tencent/cherry-markdown/commit/46acccaee6bca431dade29dd151d7a45991380fc)) + + +### Bug Fixes + +* **code-block:** fix language matching regex ([4fa3b43](https://github.com/Tencent/cherry-markdown/commit/4fa3b43fbac75ac93e5e021ceb945c4801060eeb)), closes [#90](https://github.com/Tencent/cherry-markdown/issues/90) +* **link:** add bracket match check ([2bf3fa8](https://github.com/Tencent/cherry-markdown/commit/2bf3fa86acccf2757553104bdfbdec3f46b9a36f)) +* **suggester:** fix keydown 'enter' affect the default logic of newlineAndIndentContinueMarkdownList ([#190](https://github.com/Tencent/cherry-markdown/issues/190)) ([ed0a5dd](https://github.com/Tencent/cherry-markdown/commit/ed0a5ddacec41fa596671002afa6909aa45fc8b8)) + ### [0.6.12](https://github.com/Tencent/cherry-markdown/compare/v0.6.11...v0.6.12) (2022-03-23) diff --git a/dist/cherry-markdown.core.common.js b/dist/cherry-markdown.core.common.js index 3071f6de..d3218404 100644 --- a/dist/cherry-markdown.core.common.js +++ b/dist/cherry-markdown.core.common.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("jsdom"),t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}function A(e){return e&&e.default||e}var i,o,a=function(e){return e&&e.Math==Math&&e},s=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),l=function(e){try{return!!e()}catch(e){return!0}},c=!l((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=Function.prototype,f=u.apply,h=u.call,d="object"==typeof Reflect&&Reflect.apply||(c?h.bind(f):function(){return h.apply(f,arguments)}),p=Function.prototype,g=p.bind,m=p.call,v=c&&g.bind(m,m),y=c?function(e){return e&&v(e)}:function(e){return e&&function(){return m.apply(e,arguments)}},B=function(e){return"function"==typeof e},b=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=Function.prototype.call,E=c?w.bind(w):function(){return w.apply(w,arguments)},C={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,_={f:T&&!C.call({1:2},1)?function(e){var t=T(this,e);return!!t&&t.enumerable}:C},k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S=y({}.toString),x=y("".slice),F=function(e){return x(S(e),8,-1)},U=s.Object,Q=y("".split),I=l((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?Q(e,""):U(e)}:U,L=s.TypeError,O=function(e){if(null==e)throw L("Can't call method on "+e);return e},N=function(e){return I(O(e))},D=function(e){return"object"==typeof e?null!==e:B(e)},H={},M=function(e){return B(e)?e:void 0},R=function(e,t){return arguments.length<2?M(H[e])||M(s[e]):H[e]&&H[e][t]||s[e]&&s[e][t]},P=y({}.isPrototypeOf),K=R("navigator","userAgent")||"",G=s.process,j=s.Deno,$=G&&G.versions||j&&j.version,V=$&&$.v8;V&&(o=(i=V.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&K&&(!(i=K.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=K.match(/Chrome\/(\d+)/))&&(o=+i[1]);var q=o,W=!!Object.getOwnPropertySymbols&&!l((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),z=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=s.Object,X=z?function(e){return"symbol"==typeof e}:function(e){var t=R("Symbol");return B(t)&&P(t.prototype,Y(e))},J=s.String,Z=function(e){try{return J(e)}catch(e){return"Object"}},ee=s.TypeError,te=function(e){if(B(e))return e;throw ee(Z(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=s.TypeError,Ae=Object.defineProperty,ie=s["__core-js_shared__"]||function(e,t){try{Ae(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}("__core-js_shared__",{}),oe=r((function(e){(e.exports=function(e,t){return ie[e]||(ie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ae=s.Object,se=function(e){return ae(O(e))},le=y({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},ue=0,fe=Math.random(),he=y(1..toString),de=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++ue+fe,36)},pe=oe("wks"),ge=s.Symbol,me=ge&&ge.for,ve=z?ge:ge&&ge.withoutSetter||de,ye=function(e){if(!ce(pe,e)||!W&&"string"!=typeof pe[e]){var t="Symbol."+e;W&&ce(ge,e)?pe[e]=ge[e]:pe[e]=z&&me?me(t):ve(t)}return pe[e]},Be=s.TypeError,be=ye("toPrimitive"),we=function(e,t){if(!D(e)||X(e))return e;var n,r=ne(e,be);if(r){if(void 0===t&&(t="default"),n=E(r,e,t),!D(n)||X(n))return n;throw Be("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&B(n=e.toString)&&!D(r=E(n,e)))return r;if(B(n=e.valueOf)&&!D(r=E(n,e)))return r;if("string"!==t&&B(n=e.toString)&&!D(r=E(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},Ee=function(e){var t=we(e,"string");return X(t)?t:t+""},Ce=s.document,Te=D(Ce)&&D(Ce.createElement),_e=function(e){return Te?Ce.createElement(e):{}},ke=!b&&!l((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Se=Object.getOwnPropertyDescriptor,xe={f:b?Se:function(e,t){if(e=N(e),t=Ee(t),ke)try{return Se(e,t)}catch(e){}if(ce(e,t))return k(!E(_.f,e,t),e[t])}},Fe=/#|\.prototype\./,Ue=function(e,t){var n=Ie[Qe(e)];return n==Oe||n!=Le&&(B(t)?l(t):!!t)},Qe=Ue.normalize=function(e){return String(e).replace(Fe,".").toLowerCase()},Ie=Ue.data={},Le=Ue.NATIVE="N",Oe=Ue.POLYFILL="P",Ne=Ue,De=y(y.bind),He=function(e,t){return te(e),void 0===t?e:c?De(e,t):function(){return e.apply(t,arguments)}},Me=b&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=s.String,Pe=s.TypeError,Ke=function(e){if(D(e))return e;throw Pe(Re(e)+" is not an object")},Ge=s.TypeError,je=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ve={f:b?Me?function(e,t,n){if(Ke(e),t=Ee(t),Ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=$e(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return je(e,t,n)}:je:function(e,t,n){if(Ke(e),t=Ee(t),Ke(n),ke)try{return je(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ge("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qe=b?function(e,t,n){return Ve.f(e,t,k(1,n))}:function(e,t,n){return e[t]=n,e},We=xe.f,ze=function(e){var t=function(n,r,A){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,A)}return d(e,this,arguments)};return t.prototype=e.prototype,t},Ye=function(e,t){var n,r,A,i,o,a,l,c,u=e.target,f=e.global,h=e.stat,d=e.proto,p=f?s:h?s[u]:(s[u]||{}).prototype,g=f?H:H[u]||qe(H,u,{})[u],m=g.prototype;for(A in t)n=!Ne(f?A:u+(h?".":"#")+A,e.forced)&&p&&ce(p,A),o=g[A],n&&(a=e.noTargetGet?(c=We(p,A))&&c.value:p[A]),i=n&&a?a:t[A],n&&typeof o==typeof i||(l=e.bind&&n?He(i,s):e.wrap&&n?ze(i):d&&B(i)?y(i):i,(e.sham||i&&i.sham||o&&o.sham)&&qe(l,"sham",!0),qe(g,A,l),d&&(ce(H,r=u+"Prototype")||qe(H,r,{}),qe(H[r],A,i),e.real&&m&&!m[A]&&qe(m,A,i)))},Xe=y([].slice),Je=s.Function,Ze=y([].concat),et=y([].join),tt={},nt=function(e,t,n){if(!ce(tt,t)){for(var r=[],A=0;A0?Tt:Ct)(t)},kt=Math.max,St=Math.min,xt=function(e,t){var n=_t(e);return n<0?kt(n+t,0):St(n,t)},Ft=Math.min,Ut=function(e){return e>0?Ft(_t(e),9007199254740991):0},Qt=function(e){return Ut(e.length)},It=function(e){return function(t,n,r){var A,i=N(t),o=Qt(i),a=xt(r,o);if(e&&n!=n){for(;o>a;)if((A=i[a++])!=A)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Lt={includes:It(!0),indexOf:It(!1)},Ot={},Nt=Lt.indexOf,Dt=y([].push),Ht=function(e,t){var n,r=N(e),A=0,i=[];for(n in r)!ce(Ot,n)&&ce(r,n)&&Dt(i,n);for(;t.length>A;)ce(r,n=t[A++])&&(~Nt(i,n)||Dt(i,n));return i},Mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rt=Object.keys||function(e){return Ht(e,Mt)},Pt={f:b&&!Me?Object.defineProperties:function(e,t){Ke(e);for(var n,r=N(t),A=Rt(t),i=A.length,o=0;i>o;)Ve.f(e,n=A[o++],r[n]);return e}},Kt=R("document","documentElement"),Gt=oe("keys"),jt=function(e){return Gt[e]||(Gt[e]=de(e))},$t=jt("IE_PROTO"),Vt=function(){},qt=function(e){return"