中文:一个用于交互式编辑 Markdown 复选框的 VS Code 扩展原型。 English: A VS Code extension prototype for interactive Markdown checkbox editing.
Features / 功能
- 中文:识别整个 Markdown 源文件中的
[ ]和[x],包括表格单元格里的内容。 English: Recognizes[ ]and[x]across the entire Markdown source, including content inside table cells. - 中文:打开自定义的交互式预览面板。 English: Opens a custom interactive preview panel.
- 中文:在预览中点击复选框后,会回写到源
.md文档。 English: Clicking a checkbox in the preview writes the change back to the source.mddocument.
Usage / 使用方法
- 中文:打开一个 Markdown 文件。 English: Open a Markdown file.
- 中文:运行命令
Markdown: Open Interactive Checkbox Preview。 English: Run the commandMarkdown: Open Interactive Checkbox Preview. - 中文:在预览面板中点击任意复选框。 English: Click any checkbox in the preview panel.
- 中文:扩展会更新源 Markdown 中对应的标记。 English: The extension updates the corresponding token in the source Markdown.
Notes / 说明
- 中文:复选框位置的映射基于源文件中的出现顺序,按索引对应。 English: Checkbox mapping is index-based and follows the source order of all checkbox tokens.
- 中文:如果在点击时源文件发生变化,面板会自动刷新并重新映射。 English: If the source changes while you click, the panel auto-refreshes and remaps the checkbox positions.
- 中文:这不是 VS Code 内置的 Markdown Preview,而是独立的交互式预览。 English: This is separate from VS Code's built-in Markdown Preview.