You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d654a34
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: _posts/2026-07-23-neat-annotations-guide.md
+34-24Lines changed: 34 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,40 +8,50 @@ comments: true
8
8
9
9
This blog is now powered by **[neat-annotations](https://github.com/syabro/neat-annotations)** — a zero-JS CSS library for hand-drawn arrows, handwritten labels, and inline highlights.
10
10
11
-
Here is a quick guide on how to annotate text in your Markdown posts using simple HTML markup!
11
+
Here is a quick reference guide on how to annotate text in your Markdown articles!
12
12
13
-
## Directional Arrows
13
+
## Inline Highlights (Recommended for body text)
14
14
15
-
You can point handwritten arrows from 8 different directions:
15
+
When annotating inline body text, use **highlight-only** markers without floating notes or arrows. They render cleanly without disrupting line height or overlapping adjacent text:
You can mark <spanclass="ann ann-amber">important words</span>, highlight <spanclass="ann ann-blue">key metrics</span>, or emphasize <spanclass="ann ann-green">critical commands</span> seamlessly inside any paragraph.
19
+
</div>
22
20
23
-
## Color Palette
21
+
## Code & Specification Showcase ("In the Wild")
24
22
25
-
`neat-annotations` comes with 6 built-in color styles:
23
+
When you want to point arrows at code tokens, parameters, or specifications, give lines generous line-height (`3.4em`) so hand-drawn labels sit cleanly around the target text:
Omit `data-note` and direction classes to create a simple handwritten marker highlight:
39
+
<divstyle="margin-top: 2rem;">
40
+
Write task output as <span class="ann ann-n ann-amber" data-note="description">JSON</span> for scripts and agents
41
+
</div>
42
+
</div>
37
43
38
-
You can mark <spanclass="ann ann-amber">important words</span> or <spanclass="ann ann-green">key metrics</span> seamlessly inline without arrows or notes.
44
+
## Markdown Markup Syntax
39
45
40
-
## Markdown Example
46
+
To add annotations to your Markdown posts, simply wrap your target text in a `<span>` tag:
41
47
42
48
```html
43
-
<!-- Example annotation in markdown -->
44
-
The system updates <spanclass="ann ann-n ann-amber"data-note="zero downtime">in real time</span>.
45
-
```
49
+
<!-- Highlight only (no arrow) -->
50
+
<spanclass="ann ann-amber">important note</span>
51
+
52
+
<!-- Arrow pointing South with handwritten label -->
0 commit comments