I am looking to implement markdown support in my blog, which is based on a CSS theme with numerous predefined styles for basic elements like p
and h
. I came across the project github-markdown-css, which seemed promising. However, after adding these styles to my blog and applying the markdown-body
class to the article's div, the content did not display as expected due to conflicting styles from the blog theme.
To incorporate the markdown styles, I included the following:
link(rel='stylesheet', href='/css/styles.css')
link(rel='stylesheet', href='/css/github-markdown.css')
Despite placing github-markdown.css
below styles.css
, the theme's styles still took precedence. Is there a way to override the theme's styles specifically for articles that have the markdown-body
class?