From d5edb195f9de69688e8a9a63b74d726605f65e75 Mon Sep 17 00:00:00 2001 From: "qixian.cs" Date: Wed, 18 Dec 2024 12:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20PPT=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=EF=BC=8C=E6=89=A9=E5=B1=95=20Markdown=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E5=8A=9F=E8=83=BD=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=B8=E5=85=B3=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + pnpm-lock.yaml | 56 ++++++++ src/MarkdownEditor/demos/ppt.tsx | 209 ++++++++++++++++++++++++++++ src/MarkdownEditor/demos/render.tsx | 4 +- src/MarkdownEditor/el.ts | 4 +- src/MarkdownEditor/index.md | 2 + 6 files changed, 275 insertions(+), 2 deletions(-) create mode 100644 src/MarkdownEditor/demos/ppt.tsx diff --git a/package.json b/package.json index 14dfa10f..0dc9549e 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "@types/react": "^18.3.16", "@types/react-dom": "^18.3.5", "@types/react-resizable": "^3.0.8", + "@types/reveal.js": "^5.0.4", "@umijs/lint": "^4.3.36", "@vitejs/plugin-react": "^4.3.3", "dumi": "^2.4.13", @@ -106,6 +107,7 @@ "prettier-plugin-packagejson": "^2.5.6", "react": "^18.3.1", "react-dom": "^18.3.1", + "reveal.js": "^5.1.0", "stylelint": "^14.16.1", "typescript": "^5.7.2", "vitest": "^2.1.5" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5837bf4a..bd82e277 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -162,6 +162,9 @@ importers: '@types/react-resizable': specifier: ^3.0.8 version: 3.0.8 + '@types/reveal.js': + specifier: ^5.0.4 + version: 5.0.4 '@umijs/lint': specifier: ^4.3.36 version: 4.3.36(eslint@8.57.1)(stylelint@14.16.1)(typescript@5.7.2) @@ -204,6 +207,9 @@ importers: react-dom: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) + reveal.js: + specifier: ^5.1.0 + version: 5.1.0 stylelint: specifier: ^14.16.1 version: 14.16.1 @@ -1632,42 +1638,49 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@napi-rs/nice-linux-arm64-musl@1.0.1': resolution: {integrity: sha512-wG8fa2VKuWM4CfjOjjRX9YLIbysSVV1S3Kgm2Fnc67ap/soHBeYZa6AGMeR5BJAylYRjnoVOzV19Cmkco3QEPw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@napi-rs/nice-linux-ppc64-gnu@1.0.1': resolution: {integrity: sha512-lxQ9WrBf0IlNTCA9oS2jg/iAjQyTI6JHzABV664LLrLA/SIdD+I1i3Mjf7TsnoUbgopBcCuDztVLfJ0q9ubf6Q==} engines: {node: '>= 10'} cpu: [ppc64] os: [linux] + libc: [glibc] '@napi-rs/nice-linux-riscv64-gnu@1.0.1': resolution: {integrity: sha512-3xs69dO8WSWBb13KBVex+yvxmUeEsdWexxibqskzoKaWx9AIqkMbWmE2npkazJoopPKX2ULKd8Fm9veEn0g4Ig==} engines: {node: '>= 10'} cpu: [riscv64] os: [linux] + libc: [glibc] '@napi-rs/nice-linux-s390x-gnu@1.0.1': resolution: {integrity: sha512-lMFI3i9rlW7hgToyAzTaEybQYGbQHDrpRkg+1gJWEpH0PLAQoZ8jiY0IzakLfNWnVda1eTYYlxxFYzW8Rqczkg==} engines: {node: '>= 10'} cpu: [s390x] os: [linux] + libc: [glibc] '@napi-rs/nice-linux-x64-gnu@1.0.1': resolution: {integrity: sha512-XQAJs7DRN2GpLN6Fb+ZdGFeYZDdGl2Fn3TmFlqEL5JorgWKrQGRUrpGKbgZ25UeZPILuTKJ+OowG2avN8mThBA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@napi-rs/nice-linux-x64-musl@1.0.1': resolution: {integrity: sha512-/rodHpRSgiI9o1faq9SZOp/o2QkKQg7T+DK0R5AkbnI/YxvAIEHf2cngjYzLMQSQgUhxym+LFr+UGZx4vK4QdQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@napi-rs/nice-win32-arm64-msvc@1.0.1': resolution: {integrity: sha512-rEcz9vZymaCB3OqEXoHnp9YViLct8ugF+6uO5McifTedjq4QMQs3DHz35xBEGhH3gJWEsXMUbzazkz5KNM5YUg==} @@ -1735,36 +1748,42 @@ packages: engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm-musl@2.5.0': resolution: {integrity: sha512-6uHywSIzz8+vi2lAzFeltnYbdHsDm3iIB57d4g5oaB9vKwjb6N6dRIgZMujw4nm5r6v9/BQH0noq6DzHrqr2pA==} engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [musl] '@parcel/watcher-linux-arm64-glibc@2.5.0': resolution: {integrity: sha512-BfNjXwZKxBy4WibDb/LDCriWSKLz+jJRL3cM/DllnHH5QUyoiUNEp3GmL80ZqxeumoADfCCP19+qiYiC8gUBjA==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm64-musl@2.5.0': resolution: {integrity: sha512-S1qARKOphxfiBEkwLUbHjCY9BWPdWnW9j7f7Hb2jPplu8UZ3nes7zpPOW9bkLbHRvWM0WDTsjdOTUgW0xLBN1Q==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [musl] '@parcel/watcher-linux-x64-glibc@2.5.0': resolution: {integrity: sha512-d9AOkusyXARkFD66S6zlGXyzx5RvY+chTP9Jp0ypSTC9d4lzyRs9ovGf/80VCxjKddcUvnsGwCHWuF2EoPgWjw==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-x64-musl@2.5.0': resolution: {integrity: sha512-iqOC+GoTDoFyk/VYSFHwjHhYrk8bljW6zOhPuhi5t9ulqiYq1togGJB5e3PwYVFFfeVgc6pbz3JdQyDoBszVaA==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [musl] '@parcel/watcher-win32-arm64@2.5.0': resolution: {integrity: sha512-twtft1d+JRNkM5YbmexfcH/N4znDtjgysFaV9zvZmmJezQsKpkfLYJ+JFV3uygugK6AtIM2oADPkB2AdhBrNig==} @@ -1896,51 +1915,61 @@ packages: resolution: {integrity: sha512-QAg11ZIt6mcmzpNE6JZBpKfJaKkqTm1A9+y9O+frdZJEuhQxiugM05gnCWiANHj4RmbgeVJpTdmKRmH/a+0QbA==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.28.1': resolution: {integrity: sha512-dRP9PEBfolq1dmMcFqbEPSd9VlRuVWEGSmbxVEfiq2cs2jlZAl0YNxFzAQS2OrQmsLBLAATDMb3Z6MFv5vOcXg==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.28.1': resolution: {integrity: sha512-uGr8khxO+CKT4XU8ZUH1TTEUtlktK6Kgtv0+6bIFSeiSlnGJHG1tSFSjm41uQ9sAO/5ULx9mWOz70jYLyv1QkA==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.28.1': resolution: {integrity: sha512-QF54q8MYGAqMLrX2t7tNpi01nvq5RI59UBNx+3+37zoKX5KViPo/gk2QLhsuqok05sSCRluj0D00LzCwBikb0A==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-loongarch64-gnu@4.28.1': resolution: {integrity: sha512-vPul4uodvWvLhRco2w0GcyZcdyBfpfDRgNKU+p35AWEbJ/HPs1tOUrkSueVbBS0RQHAf/A+nNtDpvw95PeVKOA==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.28.1': resolution: {integrity: sha512-pTnTdBuC2+pt1Rmm2SV7JWRqzhYpEILML4PKODqLz+C7Ou2apEV52h19CR7es+u04KlqplggmN9sqZlekg3R1A==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.28.1': resolution: {integrity: sha512-vWXy1Nfg7TPBSuAncfInmAI/WZDd5vOklyLJDdIRKABcZWojNDY0NJwruY2AcnCLnRJKSaBgf/GiJfauu8cQZA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.28.1': resolution: {integrity: sha512-/yqC2Y53oZjb0yz8PVuGOQQNOTwxcizudunl/tFs1aLvObTclTwZ0JhXF2XcPT/zuaymemCDSuuUPXJJyqeDOg==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.28.1': resolution: {integrity: sha512-fzgeABz7rrAlKYB0y2kSEiURrI0691CSL0+KXwKwhxvj92VULEDQLpBYLHpF49MSiPG4sq5CK3qHMnb9tlCjBw==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.28.1': resolution: {integrity: sha512-xQTDVzSGiMlSshpJCtudbWyRfLaNiVPXt1WgdWTwWz9n0U12cI2ZVtWe/Jgwyv/6wjL7b66uu61Vg0POWVfz4g==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.28.1': resolution: {integrity: sha512-wSXmDRVupJstFP7elGMgv+2HqXelQhuNf+IS4V+nUpNVi/GUiBgDmfwD0UGN3pcAnWsgKG3I52wMOBnk1VHr/A==} @@ -2102,24 +2131,28 @@ packages: engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [glibc] '@swc/core-linux-arm64-musl@1.4.2': resolution: {integrity: sha512-3G0D5z9hUj9bXNcwmA1eGiFTwe5rWkuL3DsoviTj73TKLpk7u64ND0XjEfO0huVv4vVu9H1jodrKb7nvln/dlw==} engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [musl] '@swc/core-linux-x64-gnu@1.4.2': resolution: {integrity: sha512-LFxn9U8cjmYHw3jrdPNqPAkBGglKE3tCZ8rA7hYyp0BFxuo7L2ZcEnPm4RFpmSCCsExFH+LEJWuMGgWERoktvg==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [glibc] '@swc/core-linux-x64-musl@1.4.2': resolution: {integrity: sha512-dp0fAmreeVVYTUcb4u9njTPrYzKnbIH0EhH2qvC9GOYNNREUu2GezSIDgonjOXkHiTCvopG4xU7y56XtXj4VrQ==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [musl] '@swc/core-win32-arm64-msvc@1.4.2': resolution: {integrity: sha512-HlVIiLMQkzthAdqMslQhDkoXJ5+AOLUSTV6fm6shFKZKqc/9cJvr4S8UveNERL9zUficA36yM3bbfo36McwnvQ==} @@ -2331,6 +2364,9 @@ packages: '@types/responselike@1.0.3': resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==} + '@types/reveal.js@5.0.4': + resolution: {integrity: sha512-70Qua903NRU736r8Z94okthf6hXKm+brta/KdHFrK6GD16eTmGhPrDYGCUP7eNifEA2mvJGlNq1IR41ycIX0Yw==} + '@types/sax@1.2.7': resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==} @@ -2475,24 +2511,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@umijs/es-module-parser-linux-arm64-musl@0.0.7': resolution: {integrity: sha512-cqQffARWkmQ3n1RYNKZR3aD6X8YaP6u1maASjDgPQOpZMAlv/OSDrM/7iGujWTs0PD0haockNG9/DcP6lgPHMw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@umijs/es-module-parser-linux-x64-gnu@0.0.7': resolution: {integrity: sha512-PHrKHtT665Za0Ydjch4ACrNpRU+WIIden12YyF1CtMdhuLDSoU6UfdhF3NoDbgEUcXVDX/ftOqmj0SbH3R1uew==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@umijs/es-module-parser-linux-x64-musl@0.0.7': resolution: {integrity: sha512-cyZvUK5lcECLWzLp/eU1lFlCETcz+LEb+wrdARQSST1dgoIGZsT4cqM1WzYmdZNk3o883tiZizLt58SieEiHBQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@umijs/es-module-parser-win32-arm64-msvc@0.0.7': resolution: {integrity: sha512-V7WxnUI88RboSl0RWLNQeKBT7EDW35fW6Tn92zqtoHHxrhAIL9DtDyvC8REP4qTxeZ6Oej/Ax5I6IjsLx3yTOg==} @@ -2533,24 +2573,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@umijs/mako-linux-arm64-musl@0.9.8': resolution: {integrity: sha512-EqUaFJGTIit/PTLC+NdHnKMvYIT0uJIgH38bknmVGaDoyvQ1MuxMcUNC8VVe52u1hi2rSRyw16UPBNrYgQb4Jw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@umijs/mako-linux-x64-gnu@0.9.8': resolution: {integrity: sha512-wgyNPEvWlDzKTylWpJvUYLILSIppA3yMm1QOQipMJ0/Q9ZBv6gHLSz/LHFB6ssRQG8wLj5aAb4BhI54T7gEj4w==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@umijs/mako-linux-x64-musl@0.9.8': resolution: {integrity: sha512-Iw0JqSKXb4xQWalYM3sYXnnIg39jietM3Zs8dI6duHaw2s1S/U7UU1qqdBaMgBCOYyHs9QRRJa5y+sZou2bI1A==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@umijs/mako-win32-ia32-msvc@0.9.8': resolution: {integrity: sha512-PJpiQ7CUcnwymSx1za0vSeXY/xv5YHb5wEpCSMnwkhw0ONG6zncQXGIlAzw5QwIarZVZVa7dIewI5f3VfHJQgw==} @@ -5698,24 +5742,28 @@ packages: engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] lightningcss-linux-arm64-musl@1.22.1: resolution: {integrity: sha512-MCV6RuRpzXbunvzwY644iz8cw4oQxvW7oer9xPkdadYqlEyiJJ6wl7FyJOH7Q6ZYH4yjGAUCvxDBxPbnDu9ZVg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [musl] lightningcss-linux-x64-gnu@1.22.1: resolution: {integrity: sha512-RjNgpdM20VUXgV7us/VmlO3Vn2ZRiDnc3/bUxCVvySZWPiVPprpqW/QDWuzkGa+NCUf6saAM5CLsZLSxncXJwg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [glibc] lightningcss-linux-x64-musl@1.22.1: resolution: {integrity: sha512-ZgO4C7Rd6Hv/5MnyY2KxOYmIlzk4rplVolDt3NbkNR8DndnyX0Q5IR4acJWNTBICQ21j3zySzKbcJaiJpk/4YA==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [musl] lightningcss-win32-x64-msvc@1.22.1: resolution: {integrity: sha512-4pozV4eyD0MDET41ZLHAeBo+H04Nm2UEYIk5w/ts40231dRFV7E0cjwbnZvSoc1DXFgecAhiC0L16ruv/ZDCpg==} @@ -7895,6 +7943,10 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + reveal.js@5.1.0: + resolution: {integrity: sha512-KDt7m0+xwKV6nAZt4CNPVFBf42sTKRQapg0bGGKB5PKO5XvChnMfwlZkybydHiQJ7p5+6LbHKRGrhXODdoNIaA==} + engines: {node: '>=18.0.0'} + rfdc@1.4.1: resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} @@ -11723,6 +11775,8 @@ snapshots: dependencies: '@types/node': 22.10.2 + '@types/reveal.js@5.0.4': {} + '@types/sax@1.2.7': dependencies: '@types/node': 17.0.45 @@ -19112,6 +19166,8 @@ snapshots: reusify@1.0.4: {} + reveal.js@5.1.0: {} + rfdc@1.4.1: {} rgbcolor@1.0.1: diff --git a/src/MarkdownEditor/demos/ppt.tsx b/src/MarkdownEditor/demos/ppt.tsx new file mode 100644 index 00000000..34af4190 --- /dev/null +++ b/src/MarkdownEditor/demos/ppt.tsx @@ -0,0 +1,209 @@ +// App.tsx +import { MarkdownEditor } from '@ant-design/md-editor'; +import { useEffect, useRef } from 'react'; +import Reveal from 'reveal.js'; +import 'reveal.js/dist/reveal.css'; + +function PPtView(props: { markdown: string }) { + const deckDivRef = useRef(null); // reference to deck container div + const deckRef = useRef(null); // reference to deck reveal instance + + useEffect(() => { + // Prevents double initialization in strict mode + if (deckRef.current) return; + console.log('deckDivRef.current', deckDivRef.current); + deckRef.current = new Reveal(deckDivRef.current!, { + transition: 'slide', + }); + + deckRef.current + .initialize({ + markdown: { + smartypants: true, + smartLists: true, + gfm: true, + }, + }) + .then(() => { + console.log('Reveal.js initialized.'); + }); + + return () => { + try { + if (deckRef.current) { + deckRef.current.destroy(); + deckRef.current = null; + } + } catch (e) { + console.warn('Reveal.js destroy call failed.'); + } + }; + }, []); + + return ( +
+ { + if ( + props.element.type !== 'table-cell' && + props.element.type !== 'table-row' && + props.element.type !== 'card-before' && + props.element.type !== 'card-after' && + props.element.type !== 'list-item' + ) { + return ( +
+ {defaultDom} +
+ ); + } + return defaultDom as React.ReactElement; + }} + /> +
+ ); +} + +export default () => { + return ( + + +## 创始人 + +腾讯,全称深圳市腾讯计算机系统有限公司,是由五位创始人共同创立的,他们是马化腾、张志东、许晨晔、陈一丹和曾李青。 以下是关于这些创始人的详细信息: 马化腾 马化腾,1971 年 10 月 29 日出生于广东省东方县(现海南省东方市)八所港,广东汕头人,汉族,无党派人士。他毕业于深圳大学电子工程系计算机专业。马化腾是腾讯科技(深圳)有限公司的创始人、董事会主席、首席执行官,并曾是中华人民共和国第十二、十三届全国人民代表大会代表 。马化腾在 1998 年 11 月 11 日与合伙人共同注册成立了腾讯,并在 2004 年 6 月 16 日带领腾讯在香港联合交易所有限公司主板上市。 张志东 张志东,马化腾的同学,被称为 QQ 之父。他的计算机技术非常出色,曾是深圳大学最拔尖的学生之一。张志东在腾讯担任 CTO,并在 2014 年 9 月离职,转任腾讯公司终身荣誉顾问及腾讯学院荣誉院长等职位 。 + +## 部门 + +- 腾讯科技(深圳)有限公司 + - 腾讯学院 + - 腾讯云 + - 腾讯金融 + - 腾讯游戏 + - 腾讯广告 + - 腾讯社交网络 + - 微信 + - QQ + - QQ 音乐 +- QQ 空间 + - 腾讯其他业务 + +## 战略 + +- [x][张志东](https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png?param=3&id=2) Write the press release +- [] Update the website +- [] Contact the media + + +## 表格 + +| 业务 | 2021Q1 | 2021Q2 | 2021Q3 | 2021Q4 | 2022Q1 | 2022Q2 | 2022Q3 | 2022Q4 | 2023Q1 | 2023Q2 | 2023Q3 | 2023Q4 | +| -------------------- | -------- | -------- | -------- | -------- | -------- | ------- | ------- | -------- | -------- | -------- | -------- | -------- | +| 收入 | 135, 303 | 138, 259 | 142, 368 | 144, 188 | 135, 471 | 134,034 | 140,093 | 144, 954 | 149, 986 | 149, 208 | 154, 625 | 155, 200 | +| 社交网络收入增值服务 | 72, 443 | 72,013 | 75, 203 | 71, 913 | 72, 738 | 71, 683 | 72, 727 | 70, 417 | 79, 337 | 74, 211 | 75, 748 | 69, 100 | +| 网络游戏 | 43, 600 | 43,000 | 44, 900 | 42, 800 | 43, 600 | 42, 500 | na | na | na | 44, 500 | 46,000 | 40, 900 | +| 社交网络收入 | 28, 800 | 29,000 | 30, 300 | 29, 100 | 29, 100 | 29, 200 | na | na | na | 29, 700 | 29, 700 | 28, 200 | +| 网络广告 | 21, 820 | 22, 833 | 22, 495 | 21, 518 | 17, 988 | 18, 638 | 21, 443 | 24, 660 | 20, 964 | 25,003 | 25, 721 | 29, 794 | +| 其他 | 41,040 | 43, 413 | 44, 670 | 50, 757 | 44, 745 | 43, 713 | 45, 923 | 49, 877 | 49, 685 | 49, 994 | 53, 156 | 54, 379 | +| 金融科技 | 39,028 | 41, 892 | 43, 317 | 47, 958 | 42, 768 | 42, 208 | 44, 844 | 47, 244 | 48, 701 | 48, 635 | 52,048 | 52, 435 | +| 云 | 62,012 | 1, 521 | 1, 353 | 2, 799 | 1, 977 | 1, 505 | 1,079 | 2, 633 | 984 | 1, 359 | 1, 108 | 1, 944 | + +## 链接 + + +[腾讯官网](https://www.zhihu.com/question/665438199/answer/3625311124 '腾讯官网') + +[腾讯官网](https://www.zhihu.com/question/665438199/answer/3625311124 '腾讯官网') + +## Description + +| 业务 | 2021Q1 | 2021Q2 | 2021Q3 | 2021Q4 | 2022Q1 | 2022Q2 | 2022Q3 | 2022Q4 | 2023Q1 | 2023Q2 | 2023Q3 | 2023Q4 | +| ------------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ------- | +| 收入 | 135, 303 | 138, 259 | 142, 368 | 144, 188 | 135, 471 | 134,034 | 140,093 | 144, 954 | 149, 986 | 149, 208 | 154, 625 | 155, 200 | + +## 图表 + + + +| 业务 | 2021Q1 | 2021Q2 | 2021Q3 | 2021Q4 | 2022Q1 | +| ------------ | -------- | -------- | -------- | -------- | -------- | +| 收入 | 135, 303 | 138, 259 | 142, 368 | 144, 188 | 135, 471 | +| 增值服务 | 72, 443 | 72,013 | 75, 203 | 71, 913 | 72, 738 | +| 网络游戏 | 43, 600 | 43,000 | 44, 900 | 42, 800 | 43, 600 | +| 社交网络收入 | 28, 800 | 29,000 | 30, 300 | 29, 100 | 29, 100 | +| 网络广告 | 21, 820 | 22, 833 | 22, 495 | 21, 518 | 17, 988 | +| 其他 | 41,040 | 43, 413 | 44, 670 | 50, 757 | 44, 745 | +| 金融科技 | 39,028 | 41, 892 | 43, 317 | 47, 958 | 42, 768 | +| 云 | 162,012 | 111, 521 | 111, 353 | 112, 799 | 111, 977 | + +## 图片 + +![](https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*9F0qRYV8EjUAAAAAAAAAAAAADml6AQ/original) + +## 视频 + +![video: 视频名](https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/A*NudQQry0ERwAAAAAAAAAAAAADtN3AQ) + +## 附件 + +![attachment: 测试附件.pdf](https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/A*NudQQry0ERwAAAAAAAAAAAAADtN3AQ) + +## 引用 + +上上任的武汉大学校长是李晓红。[^ 1][^ 2] + +| 业务 | 2021Q1 | 2021Q2 | 2021Q3 | 2021Q4 | 2022Q1 | +| ------------ | -------- | -------- | -------- | -------- | -------- | +| 收入 | 135, 303 | 138, 259 | 142, 368 | 144, 188 | 135, 471 | +| 增值服务 | 72, 443 | 72,013 | 75, 203 | 71, 913 | 72, 738 | +| 网络游戏 | 43, 600 | 43,000 | 44, 900 | 42, 800 | 43, 600 | +| 社交网络收入 | 28, 800 | 29,000 | 30, 300 | 29, 100 | 29, 100 | +| 网络广告 | 21, 820 | 22, 833 | 22, 495 | 21, 518 | 17, 988 | +| 其他 | 41,040 | 43, 413 | 44, 670 | 50, 757 | 44, 745 | +| 金融科技 | 39,028 | 41, 892 | 43, 317 | 47, 958 | 42, 768 | +| 云 | 162,012 | 111, 521 | 111, 353 | 112, 799 | 111, 977 | + +> 数据来自[^ 3] + +[^ 1]: remarkjs.md +[^ 2]: remarkjs.md + +## 表单 + +\`\`\`schema +[ +{ +"title": "标题", +"dataIndex": "title", +"formItemProps": { +"rules": [{ "required": true, "message": "此项为必填项" }] +}, +"width": "md" +} +] +\`\`\` + +## 删除线 + +~~腾讯六大事业群腾讯六大事业群腾讯六大事业群~~ + `} + /> + ); +}; diff --git a/src/MarkdownEditor/demos/render.tsx b/src/MarkdownEditor/demos/render.tsx index 3bbcb22c..111671be 100644 --- a/src/MarkdownEditor/demos/render.tsx +++ b/src/MarkdownEditor/demos/render.tsx @@ -75,7 +75,9 @@ export default () => { if ( props.element.type !== 'table-cell' && props.element.type !== 'table-row' && - props.element.type !== 'head' + props.element.type !== 'head' && + props.element.type !== 'card-before' && + props.element.type !== 'card-after' ) { return ( > = | ChartNode | AttachNode | LinkCardNode - | CardNode; + | CardNode + | CardBeforeNode + | CardAfterNode; export type CustomLeaf> = { contextProps?: T; diff --git a/src/MarkdownEditor/index.md b/src/MarkdownEditor/index.md index a20bf803..f643c752 100644 --- a/src/MarkdownEditor/index.md +++ b/src/MarkdownEditor/index.md @@ -21,3 +21,5 @@ + +