diff --git a/TODO.md b/TODO.md index 2c1e8a1a..80c96910 100644 --- a/TODO.md +++ b/TODO.md @@ -6,9 +6,8 @@ - [ ] codeBlock 在 list item 中时,list style 问题。 - [ ] 在通过 Aganippe 打开文件时,无法通过右键选择 Aganippe。(严重 bug) - [ ] 在通过 Aganippe 打开文件时,通过右键选择软件,但是打开无内容。(严重 bug) -- [ ] export html: (3) keyframe 和 font-face 以及 bar-top 的样式都可以删除。(4) 打包后的应用 axios 获取样式有问题。(5) 输出的 html 中 a 标签无法点击 +- [ ] export html: (3) keyframe 和 font-face 以及 bar-top 的样式都可以删除。(4) 打包后的应用 axios 获取样式有问题。 - [ ] table: 如果 table 在 selection 后面,那么删除cell 的时候,会把整个 row 删除了。(小 bug) -- [ ] 输出的 styled html 中 a 标签无法点击 **菜单** diff --git a/package.json b/package.json index 21807681..13cfeb6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aganippe", - "version": "0.0.1", + "version": "0.0.2", "author": "Jocs ", "description": "A markdown editor", "license": "MIT", diff --git a/src/editor/parser/StateRender.js b/src/editor/parser/StateRender.js index 641ec3f3..7993297e 100644 --- a/src/editor/parser/StateRender.js +++ b/src/editor/parser/StateRender.js @@ -115,6 +115,7 @@ class StateRender { return h(blockSelector, data, block.children.map(child => renderBlock(child))) } else { + console.log(tokenizer(block.text)) let children = block.text ? tokenizer(block.text).reduce((acc, token) => { const chunk = this[token.type](h, cursor, block, token) diff --git a/src/editor/utils/exportStyledHTML.js b/src/editor/utils/exportStyledHTML.js index 8589ff31..0c5fe75b 100644 --- a/src/editor/utils/exportStyledHTML.js +++ b/src/editor/utils/exportStyledHTML.js @@ -18,6 +18,9 @@ class ExportHTML { Aganippe @@ -160,6 +163,7 @@ class ExportHTML { const href = anchor.attr('data-href') anchor.removeAttr('data-href') anchor.attr('href', href) + anchor.attr('target', '_blank') }) } return $('body').html()