diff --git a/README.md b/README.md index 4781398e..477ad31a 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ + `Ctrl + K, Ctrl + U` 转换大写 + `Ctrl + K, Ctrl + L` 转换小写 + `Ctrl + Alt + R` 在内置终端里面运行选中内容 + + `Ctrl + B + V` 粘贴 html 富文本 ## 特色功能 + 同步预览滚动,实现得较粗糙 diff --git a/frontend/package.json b/frontend/package.json index e0d66127..53ab43e3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -28,6 +28,7 @@ "normalize.css": "^8.0.1", "socket.io-client": "^2.2.0", "transliteration": "^2.1.3", + "turndown": "^5.0.3", "vue": "^2.6.10", "vue-bus": "^1.2.1", "vue-router": "^3.0.3", diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue index a8ebeecd..f562c5ad 100644 --- a/frontend/src/components/Editor.vue +++ b/frontend/src/components/Editor.vue @@ -5,6 +5,9 @@