Forums
« Previous Topic | Next Topic »   


Author
Hazzwold
31 Jul 2025 at 05:42 AM

Complete Markdown Formatting Guide

Table of Contents


Headers

H1 - Main Title

H2 - Section Header

H3 - Subsection

H4 - Sub-subsection

H5 - Minor heading
H6 - Smallest heading

Text Formatting

Bold text and italic text and bold italic

Strikethrough text

Inline code with backticks

This is a blockquote

It can span multiple lines

And can be nested


Lists

Unordered Lists

  • First item
  • Second item
    • Nested item
    • Another nested item
      • Deeply nested
  • Back to main level

Ordered Lists

  1. First numbered item
  2. Second numbered item
    1. Nested numbered
    2. Another nested
  3. Third item

Task Lists

  • Completed task
  • Incomplete task
  • Another completed task

Code

Inline Code

Use console.log() to output messages.

Code Blocks

def fibonacci(n):
    """Generate Fibonacci sequence up to n terms."""
    if n <= 0:
        return []
    elif n == 1:
        return [0]
    elif n == 2:
        return [0, 1]
    
    sequence = [0, 1]
    for i in range(2, n):
        sequence.append(sequence[i-1] + sequence[i-2])
    
    return sequence

# Example usage
print(fibonacci(10))
// JavaScript example
const fetchUserData = async (userId) => {
  try {
    const response = await fetch(`/api/users/${userId}`);
    const userData = await response.json();
    return userData;
  } catch (error) {
    console.error('Error fetching user data:', error);
    throw error;
  }
};

Tables

Feature Markdown HTML LaTeX
Headers
Tables
Math Limited With MathJax
Complexity Low Medium High

Aligned Tables

Left Aligned Center Aligned Right Aligned
Text Text Text
More text More text More text
Even more Even more Even more

Images

Alt text for image

Linked Image


Math

Inline Math

The quadratic formula is $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$.

Block Math

$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$

$$ \begin{align} E &= mc^2 \\ F &= ma \\ \nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \end{align} $$

Matrix Example

$\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} ax + by \\ cx + dy \end{pmatrix}$


Footnotes

This sentence has a footnote1. This one has another2.


Dividers

Horizontal rules can be created with:


Three or more hyphens


Three or more asterisks


Three or more underscores


Advanced Features

Definition Lists

Term 1 Definition for term 1 Term 2 Definition for term 2 Another definition for term 2

Escape Characters

Use backslashes to escape special characters: *not italic* and `not code`

HTML in Markdown

Click to expand This content is hidden by default and can be expanded. You can include **markdown** inside HTML tags.

Summary

This document demonstrates comprehensive markdown formatting including:

  • All six header levels
  • Text formatting (bold, italic, strikethrough)
  • Multiple list types (ordered, unordered, tasks)
  • Code blocks with syntax highlighting
  • Tables with alignment options
  • Links and images
  • Mathematical expressions
  • Footnotes and references
  • Horizontal dividers
  • Advanced HTML integration

Happy markdown writing! 🚀

  1. This is the first footnote with detailed explanation. 

  2. This is a named footnote that provides additional context. 


Just happy to be here
Back to top

There are no comments in this topic yet


Moderators: Admington

Go to:

Powered by ❤️
Legal information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.