Skip to content

Commit d8a0578

Browse files
staredclaude
andcommitted
Improve New Equation template to show label vs content
Changed from \mark[a]{a} to \mark[sine]{\sin(\pi)} = \mark[zero]{0} to clearly demonstrate that the label name can differ from the displayed content. This makes the syntax more self-explanatory: - \mark[label]{displayed content} - [text]{.label} 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 98a38d5 commit d8a0578

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

public/examples/new.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
## Equation
44

55
$$
6-
\mark[a]{a} + \mark[b]{b}
6+
\mark[sine]{\sin(\pi)} = \mark[zero]{0}
77
$$
88

99
## Description
1010

11-
[First term]{.a} plus [second term]{.b}.
11+
The [sine function]{.sine} equals [zero]{.zero}.
1212

13-
## .a
13+
## .sine
1414

15-
The first term in the equation.
15+
The sine function evaluated at π.
1616

17-
Edit this equation to create your own!
17+
Edit this equation to create your own! The syntax is `\mark[label]{displayed content}` where `label` is used for coloring and references, and `displayed content` is what appears in the equation.
1818

19-
## .b
19+
## .zero
2020

21-
The second term in the equation.
21+
The result: zero.
2222

23-
Try adding more terms using `\mark[name]{content}` in the equation, then reference them with `[text]{.name}` in the description.
23+
Reference terms in descriptions using `[text]{.label}` where `label` matches the one used in `\mark[label]{...}`.

0 commit comments

Comments
 (0)