Quick reference for Fuwari markdown syntax - admonitions, math, GitHub cards, code blocks
Displays Fuwari markdown syntax reference for extensions like admonitions, math, and code blocks
/plugin marketplace add Linaqruf/cc-plugins/plugin install fuwari-md@cc-plugins[feature]Display the syntax reference for Fuwari's markdown extensions.
When the user runs /fuwari-md:syntax:
/syntax admonitions), show only that feature's syntaxMatch these keywords to features:
admonitions, callouts, note, tip, warning → Admonitions sectionmath, latex, katex, equations → Math sectiongithub, card, repo → GitHub Cards sectioncode, codeblock, highlight → Code Blocks sectionspoiler, hidden → Spoilers sectionall or no argument → Full reference# Fuwari Markdown Syntax Reference
## Admonitions (Callouts)
Directive syntax:
:::note[Custom Title]
Content here
:::
Types: note, tip, important, warning, caution
GitHub syntax (auto-converted):
> [!NOTE]
> Content here
Types: NOTE, TIP, IMPORTANT, WARNING, CAUTION
## Math Equations
Inline math:
$E = mc^2$
Display math:
$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$
## GitHub Repository Cards
::github{repo="owner/repo"}
Example:
::github{repo="withastro/astro"}
## Code Blocks
Basic:
```javascript
const x = 1;
With title:
export default {};
With line highlighting:
const a = 1;
const b = 2; // highlighted
With line numbers disabled:
npm install
:spoiler[This text is hidden until clicked]
Headings automatically get IDs and anchor links.
### Admonitions Only
:::note Default note without custom title :::
:::note[Custom Title] Note with a custom title :::
:::tip[Pro Tip] Helpful tip content :::
:::important Important information :::
:::warning Warning message :::
:::caution Caution - be careful! :::
[!NOTE] This is a note
[!TIP] This is a tip
[!IMPORTANT] This is important
[!WARNING] This is a warning
[!CAUTION] This requires caution
| Type | Use Case |
|---|---|
| note | General information |
| tip | Helpful suggestions |
| important | Key information to highlight |
| warning | Potential issues to be aware of |
| caution | Dangerous or critical warnings |
### Math Only
Use single dollar signs for inline math: The formula $E = mc^2$ changed physics.
Use double dollar signs for block equations: $$ \sum_{i=1}^{n} x_i = x_1 + x_2 + \cdots + x_n $$
Fractions: $\frac{a}{b}$
Square root: $\sqrt{x}$, $\sqrt[n]{x}$
Subscript/superscript: $x_i^2$
Greek letters: $\alpha, \beta, \gamma, \delta$
Integrals: $\int_a^b f(x) dx$
Limits: $\lim_{x \to \infty} f(x)$
Matrices: $$ \begin{pmatrix} a & b \ c & d \end{pmatrix} $$
### GitHub Cards Only
::github{repo="owner/repo"}
::github{repo="withastro/astro"} ::github{repo="facebook/react"} ::github{repo="vuejs/vue"}
### Code Blocks Only
code here
const x = 1;
Highlight specific lines:
const a = 1;
const b = 2; // This line highlighted
Highlight range:
// lines 2-4 highlighted
Multiple:
// lines 1, 3, 5, 6, 7 highlighted
const a = 1;
const b = 2; // [!code --]
const c = 3; // [!code ++]
// These lines collapsed by default
import { a } from 'a';
import { b } from 'b';
import { c } from 'c';
import { d } from 'd';
function main() {
// Visible by default
}
Enabled by default. Disable per block:
npm install
Enable word wrap for long lines:
This is a very long line that will wrap instead of scrolling horizontally.
## Response Format
Output the appropriate reference as formatted markdown. Use code blocks for syntax examples to ensure proper display.
## Error Handling
### Invalid Feature Argument
If the user provides an unrecognized feature argument:
1. List the valid feature keywords:
- `admonitions`, `callouts`, `note`, `tip`, `warning`
- `math`, `latex`, `katex`, `equations`
- `github`, `card`, `repo`
- `code`, `codeblock`, `highlight`
- `spoiler`, `hidden`
- `all` (or no argument for full reference)
2. Suggest the closest matching feature if possible
3. Offer to show the full reference instead
**Example response for invalid feature:**
I don't recognize the feature "tables".
Available features:
Did you mean one of these? Or I can show the full reference.