Markdown Test 1: Basic Formatting & Typography

December 01, 2023Test Author1219 words7 min read

Markdown Test 1: Basic Formatting & Typography

This document demonstrates Markdown formatting through fascinating facts about mathematics, science, and computing history. Each formatting feature is showcased with genuinely interesting content.

Text Formatting

Let’s explore text formatting through remarkable discoveries:

  • The Golden Ratio (φ ≈ 1.618) appears in the Fibonacci sequence as the ratio between consecutive numbers approaches φ
  • e^(iπ) + 1 = 0 is called Euler’s Identity, often cited as the most beautiful equation in mathematics
  • Graham’s Number is so large that the observable universe is too small to contain its decimal representation
  • 0.999... = 1 is mathematically provable using limits: lim(n→∞) Σ(9/10^n) = 1
  • The Planck length (≈ 1.616 × 10^-35 meters) represents the smallest meaningful distance in physics

You can layer formats: chmod 777 is dangerously permissive, git push --force can rewrite history, and Python uses spaces Python accepts both!

Headers Hierarchy

H1 - The Observable Universe (93 billion light-years diameter)

H2 - Galactic Superclusters (100+ million light-years)

H3 - Local Galaxy Groups (10 million light-years)

H4 - Individual Galaxies (100,000 light-years)

H5 - Solar Systems (0.001 light-years)
H6 - Quantum Scale (10^-35 meters)

Each header level represents a mind-boggling jump in scale—from the entire cosmos down to the Planck length.

Lists and Nesting

Unordered Lists

  • The Y2K bug wasn’t just hype—we spent $300+ billion fixing it
  • A bit flip, possibly from cosmic rays, is suspected to have affected a Belgian election system in 2003
    • Cosmic ray bit flip rates vary widely based on altitude and location
    • ECC memory can detect and correct single-bit errors
      • Google’s study found 8% of DIMMs experience errors yearly
      • Without ECC, silent data corruption is inevitable
        • This is why ZFS checksums every block of data
  • The first computer bug was literally a moth trapped in a relay (1947)

Ordered Lists

  1. TCP packet #1 says “SYN” (Synchronize?)
  2. Server responds “SYN-ACK” (Synchronized, Acknowledged!)
    1. This establishes sequence numbers
    2. Prevents replay attacks
      1. Each side picks a random 32-bit number
      2. All future packets increment from there
  3. Client sends “ACK” (Acknowledged, let’s talk!)
    • This “3-way handshake” happens billions of times per second
    • Without it, the internet wouldn’t work

Task Lists

  • Prove P ≠ NP (just kidding, still unsolved)
  • Find a polynomial-time algorithm for factoring large composite numbers
  • Invent public-key cryptography (Diffie-Hellman, 1976)
    • Break RSA-2048 encryption (needs ~300 qubits)
    • Create quantum-resistant algorithms (NIST approved in 2022)

Images and Media

The “Blue Marble” photo fundamentally changed how we see Earth:

Test Image 1

Fun fact: The first image on the web was CERN band photo of a comedy band at CERN in 1992.

Click to explore more:

Clickable Image

Blockquotes and Citations

“640K ought to be enough for anybody.” - Misattributed to Bill Gates

“There are only two hard things in Computer Science: cache invalidation and naming things.” — Phil Karlton

“…and off-by-one errors.” — Extended by Leon Bambrick

Claude Shannon’s information theory revolutionized communication:

“Information is the resolution of uncertainty”

Fun fact: Shannon also invented the digital circuit while at MIT in 1937, creating the foundation for all modern computers

Code Blocks

The magic number 0x5f3759df revolutionized 3D graphics (Quake’s fast inverse square root), while 0xDEADBEEF marks uninitialized memory.

// The original "Hello, World!" by Brian Kernighan (1978)
main() {
    printf("hello, world\n");
}
// The most copied Stack Overflow snippet (11+ million times)
function isValidEmail(email) {
    // This regex has been copied more than any other code in history
    return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}

Horizontal Rules

Different ways to create horizontal rules:


Three hyphens


Three asterisks


Three underscores

Tables - Keyboard Shortcuts That Changed Computing

ShortcutOriginImpact
Ctrl+C/VXerox Star (1981)Copied billions of times daily
Ctrl+Alt+DelDavid Bradley (IBM, 1980)“I may have invented it, but Bill Gates made it famous”
Alt+TabWindows 1.0 (1985)Task switching revolution
Cmd+SpaceNeXT (1989) Spotlight (2005)Instant search paradigm
Ctrl+ZCP/M (1970s)Undo - the ultimate safety net

Special Characters & Entities

Testing special HTML characters: & < > “ ’ `

Mathematical symbols: ∑ ∏ √ ∞ ≠ ≤ ≥ ± × ÷

Arrows and symbols: → ← ↑ ↓ ⇒ ⇐ ↔ • ° ™ © ®

Currency symbols: $ € £ ¥ ¢ ₹ ₽ ¤

Emoji support: 🚀 🎨 ✨ 💻 🎯 📚 ✅ ❌ ⚡ 🔥

International characters: café, résumé, naïve, Zürich, façade, piñata

Edge Cases and Stress Tests

Empty Elements

  • Empty list item below:
  • List with just spaces:
  • Normal item after empties
  1. Empty numbered item:
  2. Normal numbered item

Very Long Content

This is an extremely long line that tests how our markdown processor handles line wrapping, horizontal scrolling, and responsive design. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Nested Formatting Combinations

Bold inside a blockquote with italic and code plus a link.

  1. Numbered list in quote
  2. With formatted text
    • And nested bullets
    • With inline code

Escaping Special Characters

Let’s test escaping: *not italic* and [not a link](example.com)

Literal backticks: `not code` and double **not bold**

Typography Details

Quotes and Dashes

“Smart quotes” should be converted properly, along with ‘single quotes’.

En-dash for ranges: 2020–2024 Em-dash for breaks—like this one—should work correctly.

Ellipsis… should be handled properly too.

Line Breaks and Spacing

Single line breaks don’t create new paragraphs.

But double line breaks do.

Trailing spaces create line breaks without paragraph gaps.

Conclusion

This comprehensive test document covers:

✅ All basic markdown elements ✅ Nested structures and combinations ✅ Special characters and Unicode ✅ Edge cases and stress tests ✅ Typography and formatting details ✅ Images and media embedding

If everything above renders correctly with proper styling, accessibility features, and responsive behavior, our markdown processor is working perfectly!


End of Test Document 1 - Basic Formatting

Share :LinkedIn