Njaari Ngaruiya & Co. Advocates
Back
MDXBloggingWritingTutorial

Writing Blog Posts with MDX - A Complete Guide

Mar 21, 2024

Writing Blog Posts with MDX - A Complete Guide

Learn how to format and structure your blog posts using MDX, including typography, images, and other interactive elements.

This guide demonstrates how to write and format blog posts using MDX. You'll learn about different typography elements, embedding images, and using special components.

Basic Typography

Regular paragraph text looks like this. You can use bold text or italic text for emphasis. You can also use bold and italic together.

Headers

H2 Header (main sections)

H3 Header (subsections)

H4 Header (smaller sections)

Lists

Unordered list:

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

Numbered list:

  1. First step
  2. Second step
  3. Third step

Links and References

You can create links to other pages like this.

Images

You can embed images like this:

Alt text for accessibility

Quotes

This is how you format a blockquote. Great for highlighting important statements or testimonials.

Code Blocks

// This is how you show code examples
function example() {
  return "Hello, World!";
}

Tables

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

e

P

Written By

Phyllis Njaari

Managing Partner