# Markdown Syntax & Variables - Analysis & Recommendations ## Current Issues ### 1. Card & Button Syntax **Current:** ```markdown [card type="hero"] Content here [/card] [button url="https://example.com" style="solid"]Click me[/button] ``` **Problem:** Not standard Markdown - uses WordPress-style shortcodes ### 2. Variable Naming Mismatch **Template uses:** `{order_item_table}` (singular) **Preview defines:** `order_items_table` (plural) **Result:** Variable not replaced, shows as `{orderitemtable}` (underscores removed by some HTML sanitizer) --- ## All Variables Used in Templates ### Order Variables - `{order_number}` - Order ID - `{order_date}` - Order date - `{order_total}` - Total amount - `{order_status}` - Current status - `{order_url}` - Link to view order - `{order_item_table}` ⚠️ **MISMATCH** - Should be `order_items_table` ### Customer Variables - `{customer_name}` - Customer full name - `{customer_email}` - Customer email - `{customer_username}` - Username (for new accounts) - `{customer_password}` - Temporary password (for new accounts) ### Store Variables - `{store_name}` - Store name - `{store_url}` - Store URL - `{store_email}` - Store contact email ### Payment Variables - `{payment_method}` - Payment method used - `{payment_status}` - Payment status - `{transaction_id}` - Transaction ID ### Shipping Variables - `{shipping_address}` - Full shipping address - `{tracking_number}` - Shipment tracking number - `{carrier}` - Shipping carrier ### Date Variables - `{completion_date}` - Order completion date - `{cancellation_date}` - Order cancellation date --- ## Recommendations ### Option 1: Keep Current Syntax (Easiest) **Pros:** - No changes needed - Users already familiar - Clear boundaries for cards **Cons:** - Not standard Markdown - Verbose **Action:** Just fix the variable mismatch ### Option 2: Simplified Shortcode ```markdown [card:hero] Content here [/card] [button:solid](https://example.com)Click me[/button] ``` **Pros:** - Shorter, cleaner - Still clear **Cons:** - Still not standard Markdown - Requires converter changes ### Option 3: HTML + Markdown (Hybrid) ```html