infographic-syntax-creator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInfographic Syntax Creator
Infographic语法生成器
Overview
概述
Generate AntV Infographic syntax output from user content, following the rules in .
references/prompt.md根据中的规则,从用户内容生成AntV Infographic语法输出。
references/prompt.mdWorkflow
工作流程
- Read for syntax rules, templates, and output constraints.
references/prompt.md - Extract the user's key structure: title, desc, items, hierarchy, metrics; infer missing pieces if needed.
- Select a template that matches the structure (sequence/list/compare/hierarchy/chart).
- Compose the syntax using as the formatting baseline.
references/prompt.md - Preserve hard constraints in every output:
- Output is a single code block; no extra text.
plain - First line is .
infographic <template-name> - Use two-space indentation; key/value pairs are ; arrays use
key value.- - Compare templates () must have exactly two root nodes with children.
compare-*
- Output is a single
- 阅读以了解语法规则、模板和输出约束。
references/prompt.md - 提取用户内容的关键结构:标题、描述、条目、层级、指标;必要时推断缺失的内容。
- 选择与该结构匹配的模板(序列/列表/对比/层级/图表)。
- 以为格式基准编写语法。
references/prompt.md - 所有输出必须遵守以下硬性约束:
- 输出为单个代码块;无额外文本。
plain - 第一行是。
infographic <template-name> - 使用两个空格缩进;键值对格式为;数组使用
key value。- - 对比类模板()必须包含恰好两个带有子节点的根节点。
compare-*
- 输出为单个