Skip to content

Commit

Permalink
fix(EditorMd): 修复需要一个空格才能艾特的问题 (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyan95 authored Mar 25, 2024
1 parent a1b1141 commit bd976f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) {
const endPos = value.indexOf(' ', cursor.ch) > -1 ? value.indexOf(' ', cursor.ch) : value.length;
hint = value.slice(startPos, cursor.ch);
if (
(startPos > 0 && value[startPos - 1] !== ' ') ||
startPos < 0 ||
!hint.includes(nowPrefix) ||
hint.endsWith(' ') ||
Expand Down
4 changes: 2 additions & 2 deletions packages/devui-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-devui",
"version": "1.6.3-editable-select.1",
"version": "1.6.3-markdown.3",
"license": "MIT",
"description": "DevUI components based on Vite and Vue3",
"keywords": [
Expand Down Expand Up @@ -124,4 +124,4 @@
"vitepress-theme-demoblock": "1.3.2",
"vue-tsc": "0.38.8"
}
}
}

0 comments on commit bd976f4

Please sign in to comment.