GitHub-Style Alerts
Create styled callout boxes using the GitHub alert syntax:Alert Types
- NOTE
- TIP
- IMPORTANT
- WARNING
- CAUTION
[!NOTE] Useful information that users should know, even when skimming content.
Implementation
Alerts are rendered via themarked-alert extension:
src/lib/markdown.ts
Alert syntax is identical to GitHub’s markdown rendering, ensuring compatibility with your existing documentation.
Tables
Create tables using pipe syntax:| Syntax | Description | Test Text |
|---|---|---|
| Header | Title | Here’s this |
| Paragraph | Text | And more |
Alignment
Control column alignment with colons:| Left aligned | Center aligned | Right aligned |
|---|---|---|
| Left | Center | Right |
| Text | Text | Text |
Footnotes
Add footnotes to provide additional context without cluttering the main text:Implementation
Footnotes are rendered via themarked-footnote extension:
src/lib/markdown.ts
Task Lists
Create interactive checkboxes for task tracking:- Completed task
- Uncompleted task
- Another task to do
Task lists in CodeInk are visual only. Checking/unchecking boxes requires editing the markdown source.
Auto-Linked Headings
All headings automatically receive IDs based on their text content, making them linkable:Implementation
Heading IDs are generated viamarked-gfm-heading-id:
src/lib/markdown.ts
Strikethrough
Strike through text using double tildes:Automatic URL Linking
URLs are automatically converted to clickable links:Best Practices
Use alerts strategically
Don’t overuse alerts. Reserve them for truly important information.
Keep tables simple
Complex tables can be hard to read. Consider breaking them into multiple tables.
Number footnotes logically
Use sequential numbering for footnotes to maintain readability.
Test task lists
Preview your task lists to ensure proper formatting before exporting.
Related Features
- Markdown Linting - Validate GFM syntax
- Syntax Highlighting - Code block highlighting
- CodeMirror Editor - Main editing interface