Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add css classes? #220

Closed
kennetpostigo opened this issue Mar 29, 2016 · 1 comment
Closed

How to add css classes? #220

kennetpostigo opened this issue Mar 29, 2016 · 1 comment

Comments

@kennetpostigo
Copy link

Hello,

I'm currently working on a site with gatsby and I wanted to know how to add a css class to the markdown that will be rendered to a react-component.

for example:

# List
1. one
2. two
3. three

how can I add a class to the h1 and ol with gatsby?

@KyleAMathews
Copy link
Contributor

Take a look at the Kitchen Sink Starter — it shows how to add a markdown-it plugin which adds syntax for adding classes to markdown.

http://gatsbyjs.github.io/gatsby-starter-default/markdown/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants