Markdown Boilerplate with Sidenotes

This document demonstrates all standard Markdown features along with proper sidenote usage. This resource is the central reference for all content creators building a Digital Garden or implementing the Zettelkasten Method.

Basic Typography

Effective typography forms the foundation of digital writing. As explained by 1(Lee et al. 2023), consistent formatting improves readability. Recent studies 2(Garcia & Williams, 2022) show that proper formatting significantly impacts user engagement. As demonstrated in previous research 2, this approach has been validated multiple times.

Modern web development has evolved significantly 3(Zhang et al., 2023). This evolution continues to shape how we build websites 3 and manage content 4(Brown ).

Sidenotes work great with lists to provide additional context for specific items without breaking the list flow 5(Smith & Doe, 2020). Pay attention to this line. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context.

Bold text and italic text are straightforward. You can also have bold italic text and strikethrough a. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context. Sidenotes work great with lists to provide additional context.

Plain text with a sidenote. b

For academic applications of these formatting techniques, see our Academic Writing guide. 6(Johnson, 2019)

Headings

Above was an H2. Here are other levels, crucial for content organization:

H3 Heading

H4 Heading

H5 Heading
H6 Heading

Lists

Lists are essential your Personal Knowledge Base 5. Lists are essential for structuring information in your PKB

Unordered Lists

  • Item one
  • Item two
    • Nested item a
    • Nested item b
  • Item three
c

Ordered Lists

  1. First item
  2. Second item
    1. Nested item 1
    2. Nested item 2
  3. Third item

Task Lists

  • Completed task
  • Incomplete task
  • Another task

External link and internal link

Image alt text

d

Code

Inline code is wrapped with backticks. Modern web development practices 3 emphasize the importance of clean, well-documented code. This has been consistently shown in the literature 7(Miller et al. 2022).

# Code block with syntax highlighting
def hello_world():
    print("Hello, world!")
e

Blockquotes and Special Quotes

This is a standard blockquote.

It can span multiple lines.

f
Important: Always backup your data before making significant changes to your system. This warning helps ensure you don’t lose important work.
Tip: You can combine multiple markdown elements within these quote containers, including bold text, italic text, and even inline code.

Tables

Header 1Header 2Header 3
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6

Horizontal Rule


Advanced Sidenote Usage

According to 4, effective content management requires careful consideration of information architecture. Recent performance studies 7 have shown that proper content organization significantly impacts site performance. These findings align with earlier research 5.

Plain text with a sidenote. g

Complex paragraph with multiple concepts that benefit from sidenotes.h The text continues here with more information that might need explanation.i

Sidenotes with References

Academic-style writing often uses sidenotes for citations.¹j

Math Expressions

This theme supports mathematical expressions using MathJax rendering. Important: Make sure to add math = true to your page’s frontmatter to enable math rendering.

Math Syntax Guidelines

For math to render properly in Hugo:

  • Use single dollar signs $...$ for inline math
  • Use double dollar signs $$...$$ for display (block) math
  • Use single backslashes \ for LaTeX commands (not double \\)
  • Line breaks in equations use \\ (double backslashes)
  • Dollar signs are handled properly when delimiters match between Hugo and MathJax

Inline Math

Inline math is wrapped with single dollar signs: E=mc2, α+β=γ, x¯=1ni=1nxi

Inline math integrates seamlessly with your text flow for simple expressions and variables. The syntax is $E = mc^2$ which renders as E=mc2.

Block Math

For standalone equations, use double dollar signs:

b±b24ac2a

Equation Arrays and Alignment

For multiple aligned equations:

f(x)=(a+b)2 =a2+2ab+b2

Matrices

(ab cd)[x y]=[ax+by cx+dy]

Complex Notation

VFdv=\oiintSFdS

The above is Gauss’s divergence theorem, showing volume integrals can be converted to surface integrals. Complex mathematical expressions benefit from sidenotes that explain the concepts without cluttering the formula.

Numbered Equations

(1)E=mc2

Chemical Equations

Chemical equations use standard LaTeX chemistry notation with MathJax:

H2O+CO2H2CO3

More chemical equation examples:

Simple reaction: 2H2+O22H2O

With states of matter: $$ \mathrm{NaCl_{(s)} + H_2O_{(l)} \rightarrow Na^+{(aq)} + Cl^-{(aq)}} $$

Complex reaction with charges: MnO4+8H++5eMn2++4H2O

Equilibrium reaction: N2+3H22NH3

Chemical equation syntax tips:

  • Use \mathrm{} to wrap chemical formulas for proper formatting
  • \rightarrow for reactions, \rightleftharpoons for equilibrium
  • ^+ and ^- for charges: Na^+, Cl^-
  • _{(s)}, _{(l)}, _{(g)}, _{(aq)} for states of matter
  • Subscripts use _: H_2O, 2NH_3
  • Superscripts use ^: Mn^{2+}

Troubleshooting:

  • If math doesn’t render, check that math = true is in your frontmatter
  • Ensure you’re using the correct delimiters ($ for inline, $$ for display)
  • For complex expressions, test in smaller parts first
  • Check browser console for MathJax errors

Footnotes

Standard markdown footnotes1 work like this.

HTML in Markdown

Custom HTML can be included directly in markdown files if your renderer supports it.

Conclusion

This boilerplate demonstrates the range of markdown features and proper sidenote usage 6. For practical applications and performance considerations 7, see our guides on Digital Gardening. As noted in seminal work 6, proper documentation is essential.

Diagrams

This theme supports both Mermaid diagrams and GoAT ASCII diagrams for visualizing complex information.

Mermaid Diagrams

Mermaid diagrams are created using fenced code blocks with the mermaid language identifier. They render dynamically and are perfect for interactive documentation.

Basic Flowchart

Valid
Invalid
Start Process
Check Input
Process Data
Show Error
Save Results
Request New Input
End

Markdown source:

Valid
Invalid
Start Process
Check Input
Process Data
Show Error
If
Then
Else
k

Sequence Diagram

DatabaseAPIFrontendUserDatabaseAPIFrontendUserSubmit FormPOST /api/dataINSERT querySuccess200 OKShow Success Message

Gantt Chart

2024-01-072024-01-142024-01-212024-01-282024-02-042024-02-112024-02-182024-02-252024-03-032024-03-102024-03-172024-03-242024-03-31Requirements Gathering    System Design           Backend Development     Frontend Development    Unit Testing           Integration Testing    AnalysisDevelopment  TestingProject Development Schedule

Class Diagram

Syntax error in textmermaid version 10.9.5

Entity Relationship Diagram

USERintidPKstringemailUKstringnamedatetimecreated_atPOSTintidPKintuser_idFKstringtitletextcontentdatetimepublished_atCOMMENTintidPKintpost_idFKintuser_idFKtextcontentdatetimecreated_atwriteshasmakes

Git Graph

maindevelop0-d44b4161-7e562182-5f443613-813b98c5-baae0e26-9962a3c

GoAT ASCII Diagrams

GoAT diagrams use ASCII art for simple, text-based visualizations that work well in plain text environments.

System Architecture

WSeebrver1DaStearbvaeWSsrLBeeeoabralvdaenrce2rCSaecrhveeWSreebrver3

Data Flow

TIVrRnaaSeplDnDtsuiasaoutdtftrlaaoaetDtrsaemtaHaEEnrrdLrrloooigrrnsg

Diagram Best Practices

Mermaid Advantages:

  • Interactive and clickable elements
  • Professional appearance
  • Wide variety of diagram types
  • Automatic layout and styling
  • Good for complex relationships

GoAT Advantages:

  • Works in plain text environments
  • Fast rendering (server-side)
  • Copy-pasteable as ASCII art
  • Minimal dependencies
  • Good for simple diagrams

Usage Guidelines:

  • Use Mermaid for complex, interactive diagrams
  • Use GoAT for simple diagrams that need to work everywhere
  • Both types export well to PDF
  • Keep diagrams focused on one concept
  • Add sidenotes to explain complex diagram elements

Diagrams are powerful tools for explaining complex concepts. Choose the right type based on your audience and medium - Mermaid for web-first content, GoAT for documentation that might be viewed as plain text.

The theme includes a powerful gallery slider component for showcasing multiple images with navigation controls, thumbnails, and captions.

The gallery slider supports both landscape and portrait images, automatically adjusting the layout. Navigation works via arrows, dots, thumbnails, and keyboard controls.

Autoplay can be enabled with a custom interval. Thumbnails can be hidden for a cleaner look.

Gallery Features:

  • Navigation: Arrow keys, click arrows, dot indicators, thumbnail clicks
  • Autoplay: Optional with customizable intervals
  • Responsive: Adapts to different screen sizes
  • Keyboard Support: Left/right arrow keys, Escape to close
  • Touch Support: Swipe gestures on mobile devices
  • Accessibility: Proper ARIA labels and keyboard navigation

The gallery component is fully accessible and works with keyboard navigation. Each image can have individual captions for better context.

}}

l src2="/images/docs/gallery-slider-doc/plums-8932336_1280.jpg" alt2=“Auto slide 2” caption2=“Hover to pause autoplay” src3="/images/docs/gallery-slider-doc/spenser-sembrat-esoj35vCKS8-unsplash.jpg" alt3=“Auto slide 3” caption3=“Click navigation to restart timer”

}}

Autoplay can be enabled with a custom interval. Thumbnails can be hidden for a cleaner look.


  1. This is a footnote content. ↩︎