Skip to content

Commit 654bfb5

Browse files
committed
🃏 update flashcard agent styling generation
1 parent f7cd4f9 commit 654bfb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/statemachine/agents/flashcards/templates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
RULES
1919
1. **Front**: `<h3>{{concept}}</h3>`
2020
2. **Back** layout (all HTML, no Markdown):
21-
• definition → `<div class="definition">…</div>`
21+
• definition → `<div class="definition">…</div>`, can be slightly formatted with html tags if applicable, otherwise use as is
2222
• example → if exists wrap in `<pre><code class="hljs">…</code></pre>`
2323
• anti-pattern→ if exists wrap in `<div class="anti">️…</div>`
24-
• contrast → if exists wrap in `<div class="contrast">…</div>`
25-
• source → if exists wrap in `<div class="source">…</div>`
24+
• contrast → if exists wrap in `<div class="contrast">(can use emojis at the beginning like ☣,⚠, or similar)…</div>`
25+
• source → if exists wrap in `<div class="source">(can use emojis at the beginning like ☯,🔀 or similar ️)…</div>`
2626
3. If definition has concepts wrapped in <u>...</u> use those as they are.
2727
3. Return **only** the JSON array; validation schema will reject extras.
2828

0 commit comments

Comments
 (0)