Dogster is reader-supported. When you buy via links on our site, we may earn a commission at no cost to you. Learn more.

Using MDX

DT
By Dogster TeamUpdated on June 1, 2024
Share
Using MDX

This theme comes with the @astrojs/mdx integration installed and configured in your astro.config.mjs config file. If you prefer not to use MDX, you can disable support by removing the integration from your config file.

Why MDX?

MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to mix JavaScript and UI Components into your Markdown content for things like interactive charts or alerts.

If you have existing content authored in MDX, this integration will hopefully make migrating to Astro a breeze.

Example

Here is how you import and use a UI component inside of MDX.
When you open this page in the browser, you should see the clickable button below.

Embedded component in MDX

Get Dogster in Your Inbox

Stay informed! Get tips, stories, and the latest news delivered to your inbox.

Click on a star to rate (you can leave written feedback after clicking submit)

Join the Conversation

3 Responses

SM
Sarah M. says:
Updated on March 28, 2026

This is such important information! We live in California and foxtails are everywhere in our neighborhood during summer. My golden retriever got one lodged in his paw last year and we didn't notice until he was limping badly. $400 vet bill later, lesson learned. Now I check his paws after every single walk.

DS
Dan Seymour says:
Updated on March 29, 2026

So sorry to hear about your golden, Sarah! You're doing exactly the right thing now with the post-walk checks. It really does become second nature after a while. Glad he recovered well!

MT
Mike T. says:
Updated on March 30, 2026

I had no idea these could migrate through tissue. That's terrifying. We just moved to Oregon from the east coast and I've never even heard of foxtails before. Going to be much more careful on our hikes now. Thank you for this article.

DL
Dr. Lisa Chen says:
Updated on April 1, 2026

As a veterinarian, I can confirm we see dozens of foxtail cases every summer. The ear cases are especially urgent — please don't wait if your dog is shaking their head violently after being in tall grass. Great article overall, very accurate information.

Leave a Reply

You're very welcome to leave a comment or question. Please know that all comments must meet our community guidelines, and your email address will NOT be published. Let's have a positive and constructive conversation.

16 Dog Breeds With Low Separation Anxiety (With Info & Pictures)

16 Dog Breeds With Low Separation Anxiety (With Info & Pictures)

Separation anxiety is a common problem for many dog owners. Dogs with separation anxiety become extremely anxious when left alone and may exhibit...

EM
By Ed Malaker · NaN years ago
10 Interesting Papillon Facts: Traits & History

10 Interesting Papillon Facts: Traits & History

Every Papillon's story is different. Still, when you look into those beautiful round eyes you might wonder how you were lucky enough to...

BN
By Brooke Norris · NaN years ago
11 Best Shampoos for Maltese in 2026: Reviews & Top Picks

11 Best Shampoos for Maltese in 2026: Reviews & Top Picks

The Maltese dog breed is loved for its gorgeous white coat. But in order to maintain this coat, it is important to have...

NC
By Nicole Cosgrove · NaN years ago
9 Plants Resistant to Dog Urine: Sturdy & Fun Options

9 Plants Resistant to Dog Urine: Sturdy & Fun Options

If you have a dog, you know how nice it is to have it trained to go outside as needed. Housebreaking is a...

NC
By Nicole Cosgrove · NaN years ago
9 Best Dog Foods for Bullmastiffs in 2026 — Reviews & Top Picks
Jan 20, 2026

9 Best Dog Foods for Bullmastiffs in 2026 — Reviews & Top Picks

With so many dog food brands available, it can be difficult to know exactly which is right for your pooch. Some breeds might need higher protein due to their higher activity levels, and some need to focus on weight management....

NC
By Nicole Cosgrove
Can Dogs Eat Mussels? Vet-Approved Benefits & Safety Tips
Oct 20, 2025

Can Dogs Eat Mussels? Vet-Approved Benefits & Safety Tips

Dogs can eat mussels in moderation. Mussels are high in protein and other nutrients that may benefit your dog; however, they don't provide everything your dog needs, so they should only be considered an occasional treat. It's best to steam...

KH
By Kristin Hitchcock
Why Dogs Love Cheese — And How to Pay the Cheese Tax Safely
Sep 15, 2025

Why Dogs Love Cheese — And How to Pay the Cheese Tax Safely

Ever notice your dog's tail wagging when you pull out cheese? You're not imagining it. Most dogs are genuinely enthusiastic about cheese, and there are good reasons for that...

DS
By Dan Seymour
How Do I Know If My Dog Is Healthy? 12 Ways to Tell
Aug 28, 2025

How Do I Know If My Dog Is Healthy? 12 Ways to Tell

One of the main reasons dog owners turn to the internet is to figure out whether their dog is healthy. Here are 12 vet-approved signs to look for...

DK
By Dr. Karyn Kanowski