feat(image): 实现 Markdown 图片文件名同步

- 新增 ImageName 实体类和对应的 Mapper- 在 MarkdownFileService 中添加图片文件名同步方法
- 优化 HomePage 组件,支持实时预览 Markdown 内容
- 新增 MarkdownImageExtractor 工具类,用于提取 Markdown 中的图片文件名
This commit is contained in:
ikmkj
2025-08-01 22:25:36 +08:00
parent 165bd5ea92
commit 15091c315e
10 changed files with 271 additions and 27 deletions

29
sql/image_name.sql Normal file
View File

@@ -0,0 +1,29 @@
/*
Navicat Premium Dump SQL
Source Server : biji数据库
Source Server Type : SQLite
Source Server Version : 3045000 (3.45.0)
Source Schema : main
Target Server Type : SQLite
Target Server Version : 3045000 (3.45.0)
File Encoding : 65001
Date: 01/08/2025 21:41:44
*/
PRAGMA foreign_keys = false;
-- ----------------------------
-- Table structure for image_name
-- ----------------------------
DROP TABLE IF EXISTS "image_name";
CREATE TABLE "image_name" (
"id" INTEGER NOT NULL,
"markdown_id" INTEGER NOT NULL,
"file_name" text NOT NULL,
PRIMARY KEY ("id")
);
PRAGMA foreign_keys = true;