---
title: "Discussion on \"Add code highlighting to MDX\" | Hashnode"
description: "Discussion on \"Add code highlighting to MDX\". I've recently dropped markdownRemark and started using MDX to write my posts. MDX is great since it allows you to import components and even write code that will be converted as expected. You can also use graphql queries on your posts which is very u..."
url: "https://hashnode.com/posts/add-code-highlighting-to-mdx/5f81e40d5841661b519d07fa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Add code highlighting to MDX](https://node.theflying.dev/add-code-highlighting-to-mdx?utm_source=hashnode&utm_medium=feed)

I've recently dropped markdownRemark and started using MDX to write my posts. MDX is great since it allows you to import components and even write code that will be converted as expected. You can also use graphql queries on your posts which is very u...

Oct 10, 2020 · 10 min read · node.theflying.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#gatsby](https://hashnode.com/tag/gatsby)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Fábio Rosado](https://hashnode.com/@FabioRosado)

@FabioRosado · Redhill, UK

  
[View profile](https://hashnode.com/@FabioRosado)

Self-taught developer by night and flight attendant by day

I'm The Flying Dev - flight attendant and self-taught developer. The founder and host of the Landing in Tech podcast.

## Responses 1

Markdown supported · ⌘↵ to post

[Kevin Cunningham](https://hashnode.com/@dolearning)

[Oct 10, 2020](https://hashnode.com/posts/add-code-highlighting-to-mdx/5f81e40d5841661b519d07fa/comment/5f81ed7b5841661b519d084f)

This is really nice. I'm thinking about updating the styling of my blog and this would be a great addition.

Love it!

[Fábio Rosado](https://hashnode.com/@FabioRosado)

[Oct 10, 2020](https://hashnode.com/posts/add-code-highlighting-to-mdx/5f81e40d5841661b519d07fa/comment/5f81ed7b5841661b519d084f#reply-5f81f6497762251b305d935e)

Thank you Kevin! Hope this helps, if you have any issue adding the code highlighting let me know I'd be happy to give you a hand
