From c7c645751be9f91f66eb2f77365f10237a2a5158 Mon Sep 17 00:00:00 2001 From: humyfred <513407656@qq.com> Date: Tue, 12 Jul 2022 00:07:24 +0800 Subject: [PATCH] chore(release): 0.7.6 --- CHANGELOG.md | 19 + dist/cherry-markdown.core.common.js | 2 +- dist/cherry-markdown.core.js | 2 +- dist/cherry-markdown.css | 25 + dist/cherry-markdown.engine.core.common.js | 2 +- dist/cherry-markdown.engine.core.esm.js | 2 +- dist/cherry-markdown.engine.core.js | 2 +- dist/cherry-markdown.esm.js | 2 +- dist/cherry-markdown.js | 1457 +++++++++++--------- dist/cherry-markdown.js.map | 2 +- dist/cherry-markdown.min.css | 2 +- dist/cherry-markdown.min.js | 2 +- dist/fonts/ch-icon.eot | Bin 16216 -> 16216 bytes dist/fonts/ch-icon.ttf | Bin 16052 -> 16052 bytes dist/fonts/ch-icon.woff | Bin 9480 -> 9480 bytes dist/fonts/ch-icon.woff2 | Bin 7968 -> 7960 bytes package.json | 3 +- 17 files changed, 882 insertions(+), 640 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c360927..57ed2145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,25 @@ 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.6](https://github.com/Tencent/cherry-markdown/compare/v0.7.5...v0.7.6) (2022-07-11) + + +### Features + +* 代码块增加复制功能 ([ac48904](https://github.com/Tencent/cherry-markdown/commit/ac48904fbd0fef929b39f40a93b1c610bef65adf)), closes [#239](https://github.com/Tencent/cherry-markdown/issues/239) +* 代码块增加复制功能 ([856b5fd](https://github.com/Tencent/cherry-markdown/commit/856b5fd0346cff0bbb124659b78737fcd0f67927)), closes [#239](https://github.com/Tencent/cherry-markdown/issues/239) +* 代码块增加复制功能 更换复制到剪贴板的方法 ([ac38a7f](https://github.com/Tencent/cherry-markdown/commit/ac38a7f7a59de360aceefb07fe43f47185a219cb)) +* 代码块增加复制功能 更换复制到剪贴板的方法 ([0b28b05](https://github.com/Tencent/cherry-markdown/commit/0b28b05a7f54f6e15b784669e33dc4718d95be41)) +* 没有选中文字的时候点击工具栏会自动选中光标附近的文字或行 ([61ed011](https://github.com/Tencent/cherry-markdown/commit/61ed01140f3ea78f402e2adb96cc28e416fe2eeb)), closes [#261](https://github.com/Tencent/cherry-markdown/issues/261) +* 增加图片样式(边框、阴影、圆角) ([01775bd](https://github.com/Tencent/cherry-markdown/commit/01775bdd902932a3f148ca6b68d3144070f9722b)), closes [#264](https://github.com/Tencent/cherry-markdown/issues/264) +* border support for image ([6df8fdc](https://github.com/Tencent/cherry-markdown/commit/6df8fdc80ac7924a36a4b0cac4ff7c8daf507a45)) + + +### Bug Fixes + +* 修复可能的报错 ([43e4e90](https://github.com/Tencent/cherry-markdown/commit/43e4e901e35299f98f99089dbe47c300b0351547)) +* Link hook对url进行排他处理 ([767bc80](https://github.com/Tencent/cherry-markdown/commit/767bc803255df047d211d0710586c570af52ae13)) + ### [0.7.5](https://github.com/Tencent/cherry-markdown/compare/v0.7.4...v0.7.5) (2022-07-01) diff --git a/dist/cherry-markdown.core.common.js b/dist/cherry-markdown.core.common.js index cc3674c9..35d121af 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"