diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 507b0cf..c07cac9 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -1,5 +1,6 @@ -import { Component } from 'react'; +import { Component, useRef } from 'react'; import { Input } from 'antd'; +import { Button, Flex } from 'antd' // import Taro from "@tarojs/taro"; // import { // View, @@ -37,32 +38,6 @@ import TextArea from 'antd/es/input/TextArea'; //  -const markTextStr = ` - ## 标题 - > 测试引用桔子的样子 -随便测试普通的文本,要不要来个\`内敛\`的字符串 - --- - - 无序列表1 - 个人有看看 - - 无序列表2 - - [ ] 任务列表 - - [x] 完成任务 - 1. 测试111 - 恶魔女哪里的请 - 2. 你好啊 - 3. iefw4t43t43t - 永远不要相信一个 - --- - 相信我 - `; - -let tablecellArr = []; -let tableRowArr = []; -let maxLengthCell = null; -let bodydata = null; -let headerdata = null; -let maxWidths = null; - marked.setOptions({ breaks: true, // 是否回车换行 gfm: true, //使用经批准的 GitHub Flavored Markdown (GFM) 规范 @@ -121,6 +96,7 @@ renderer.list = function (body, ordered, start) { const newArray = texts.filter((item) => item.includes(listSinbal)); // 0️⃣', const numbers = ['1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣', '6️⃣', '7️⃣', '8️⃣', '9️⃣', '🔟']; + const string = texts .map((value, index) => { // console.log("value, index==>", value, index); @@ -173,7 +149,6 @@ renderer.hr = function () { // return '
${text}
\n`; // return `${text}
`; - }; renderer.br = function () { return '