feat: add AI command suggestions extension for Tiptap editor

- Implemented Commands plugin to handle command suggestions triggered by '@' character.
- Created suggestion configuration to filter and render command items.
- Added various command items including date, time, formatting, templates, and task management commands.
- Introduced CSS styles for the Tiptap editor to enhance UI.
- Configured TypeScript settings and Vite build for the project.
This commit is contained in:
2025-12-17 13:48:51 +08:00
commit 8ca7efcf6d
28 changed files with 4412 additions and 0 deletions

20
index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Light Code</title>
<!-- <link href="./dist/kv-md.css" rel="stylesheet" /> -->
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/main.tsx"></script>
<!-- <kv-md-editor id="editor"></kv-md-editor> -->
<!-- <script type="module">
import './dist/kv-md.js';
</script> -->
</body>
</html>