Essential CSS
JavaScript Roadmap
Learn JavaScript
Mastering Web Typography
Practical Astro
Understanding Async JS
Unorthodox Tailwind
API Masterclass
Build and Deploy
The Beginner Freelancer
Real World Node
Profile Billing Logout
Practical Astro
Lesson Plan
  1. Content Systems
    1. Introduction
    2. An import alias
    3. Using Markdown
    4. Markdown extended
    5. Markdown component
    6. Markdown component in frameworks
    7. Content collections made easy
    8. Basic blogs
    9. Blogs made easy
    10. Prev/Next navigation
    11. Pagination made easy
    12. Better tag pages
    13. Paginated tag pages
    14. Markdown layouts
    15. Partials
    16. JS over JSON Data
    17. Dynamic 404 pages
    18. Putting everything together
    19. Other useful systems
  2. Image Systems
    1. Introduction
    2. Images are complicated because of this
    3. Astro's Image component
    4. Astro's Picture component
    5. Improvements over Astro's Image and Picture Components
    6. Images in Markdown and MDX
    7. Images in framework components
    8. Background images
    9. Art Direction with Astro
    10. Videos without layout shifts
    11. GIF Replacements and background video
    12. SVGs and icons
    13. SVG backgrounds
    14. Adding noise to images
    15. Asset caching on GitHub Actions
    16. Putting everything together
    17. Other useful systems

Using Markdown

1m:14s

Before we dive into other aspects of content, I think the most important thing you need to understand is Markdown, because Markdown is extremely useful when writing web content.

It lets us:

  • Write content without worrying about styling
  • Output several HTML tags like p li and code in an easy way
  • Handle typography elements like apostrophes without HTML entities

If you are building a blog with Astro, you’ll definitely be touching Markdown. Even if you are not building a blog, Markdown makes HTML much easier to write.

file.md
<!-- Markdown input -->
Example of **some** markdown _content_
- It's easy to write in markdown
- It'll be transformed into HTML
<!-- HTML output -->
<p>Example of <strong> some </strong> markdown <em>content</em></p>
<ul>
<li>It’s easy to write in markdown</li>
<li>It’ll be transformed into HTML</li>
</ul>

Markdown documentation

We’re not going to dive into Markdown syntax in Practical Astro because you can find that all over the web. Markdown Guide is a great place to start.

We’re going to focus on making Markdown work for you here.

Using Markdown in Astro

Astro has built-in support for Markdown, so we don’t have to install anything to make it work.

There are three ways to use Markdown. We’ll cover these in detail in the next couple of lessons.

  1. Direct import
  2. Content collections
  3. Markdown layout

The next most important thing for you to know is MDX.