A Journey Through Markdown – The Book of Life

A Journey Through Markdown

A Journey Through Markdown

Main Heading

This is a sample post to demonstrate all the markdown features available in our digital book. Let’s explore the various formatting options.

Featured Image

Text Formatting

Here’s some bold text and italic text. We can also have bold and italic text together.

This is a blockquote. It’s perfect for highlighting important quotes or thoughts.

It can span multiple lines and maintain its formatting.

Lists

Unordered list:

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Ordered list:

  1. First step
  2. Second step
    1. Sub-step
    2. Another sub-step
  3. Third step

Code Blocks

Inline code: const greeting = "Hello, World!";

// Code block with syntax highlighting
function calculateTotal(items) {
  return items.reduce((sum, item) => {
    return sum + item.price;
  }, 0);
}

This is a link

Sample Image

Tables

FeatureDescriptionExample
BoldMakes text bold**bold**
ItalicMakes text italic*italic*
CodeShows code`code`

Horizontal Rule


Task Lists

  • Completed task
  • Pending task
  • Another task

Footnotes

Here’s a sentence with a footnote1.

Mathematical Equations

Inline equation: $E = mc^2$

Block equation: $$ \frac{d}{dx}(x^n) = nx^{n-1} $$

Callouts

::: tip This is a tip callout. Use it for important information. :::

::: warning This is a warning callout. Use it for cautionary notes. :::

::: note This is a note callout. Use it for additional information. :::

Definition Lists

Term : Definition of the term

Another term : Another definition

Abbreviations

*[HTML]: Hyper Text Markup Language *[CSS]: Cascading Style Sheets

The HTML and CSS are fundamental web technologies.

Keyboard Input

Press Ctrl + C to copy.

Highlight

==This text is highlighted==

Subscript and Superscript

H2O is water, and E=mc^2^ is Einstein’s equation.

Comments

Custom Containers

::: details Click to expand This is a collapsible section. Click to expand or collapse. :::

Emoji Support

:smile: :heart: :rocket:

Blockquotes with Citations

The best way to predict the future is to invent it.

— Alan Kay

Multiple Images

First Image

Description of the photo
Photo by John Doe | Location, 2024
![Second Image](https://images.unsplash.com/photo-1579353977828-2a4eab540b9a?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8c2FtcGxlfGVufDB8fDB8fHww)

Video Embed

Audio Embed

Custom HTML

This is a custom HTML box with custom styling.

Inline HTML

This text is red

Line Breaks

This is the first line.
This is the second line.

Escaping Characters

* This is not italic *

Raw HTML

Click to expand This is raw HTML content.

Tags

#markdown #formatting #guide #technology

Footnotes

  1. This is the footnote content.