@@ -12,8 +12,10 @@ export const buildFormatDisplayInstruction = () => {
12
12
- Keep content well-structured
13
13
- Ensure consistent indentation
14
14
- Follow heading level hierarchy strictly
15
+ - Always specify language identifiers in code blocks (e.g. \`\`\`js, \`\`\`ts, \`\`\`svg, \`\`\`mermaid)
15
16
16
17
3. Mermaid Diagram Rules:
18
+ - Use \`\`\`mermaid code block for all Mermaid diagrams
17
19
- Mermaid renderer version is 10.9.0, please follow this version's syntax.
18
20
` ;
19
21
} ;
@@ -30,10 +32,10 @@ export const buildVisualExamplesInstruction = () => {
30
32
31
33
### Visual Examples Generation Guidelines:
32
34
1. Types of Visual Content to Generate:
33
- - SVG: Use for simple illustrations, icons, charts, and diagrams
34
- - HTML (with Tailwind CSS) : Use for interactive UI components and layouts
35
- - Mermaid: Use for flowcharts, sequence diagrams, entity relationships, etc.
36
- - React Components: Use for more complex interactive examples
35
+ - SVG: Use \`\`\`svg blocks for simple illustrations, icons, charts, and diagrams
36
+ - HTML: Use \`\`\`html blocks for interactive UI components and layouts with Tailwind CSS
37
+ - Mermaid: Use \`\`\`mermaid blocks for flowcharts, sequence diagrams, entity relationships, etc.
38
+ - React Components: Use \`\`\`tsx or \`\`\`jsx blocks for more complex interactive examples
37
39
38
40
2. When to Generate Visual Content:
39
41
- Explanations of complex concepts that benefit from visualization
@@ -48,5 +50,6 @@ export const buildVisualExamplesInstruction = () => {
48
50
- Include variations that address different use cases
49
51
- Combine different visualization types when they complement each other
50
52
- Ensure each example has clear explanatory text
53
+ - Always use appropriate language identifiers in code blocks
51
54
` ;
52
55
} ;
0 commit comments