feat(baoyu-markdown-to-html): add CJK content pre-check step

Suggest formatting with baoyu-format-markdown before conversion
to fix bold markers with punctuation issues.
This commit is contained in:
Jim Liu 宝玉
2026-01-28 21:49:47 -06:00
parent 9904c490e4
commit 18b71157db
+21
View File
@@ -47,6 +47,27 @@ test -f "$HOME/.baoyu-skills/baoyu-markdown-to-html/EXTEND.md" && echo "user"
## Workflow
### Step 0: Pre-check (Chinese Content)
**Condition**: Only execute if input file contains Chinese text.
**Detection**:
1. Read input markdown file
2. Check if content contains CJK characters (Chinese/Japanese/Korean)
3. If no CJK content → skip to Step 1
**Format Suggestion**:
If CJK content detected AND `baoyu-format-markdown` skill is available:
Use `AskUserQuestion` to ask whether to format first. Formatting can fix:
- Bold markers with punctuation inside causing `**` parse failures
- CJK/English spacing issues
**If user agrees**: Invoke `baoyu-format-markdown` skill to format the file, then use formatted file as input.
**If user declines**: Continue with original file.
### Step 1: Confirm Theme
Before converting, use AskUserQuestion to confirm the theme (unless user already specified):