Markdown format is not working 100% #27645
-
Markdown horizontal rule not recognizedI came across this issue from August #26246 that might be related. Following this Markdown syntax guide three or more *** or --- or ___ should produce a horizontal rule line. However, this is not happening. Per this GatsbyJS article I checked my gatsby-config.js which only the pertinent info is pasted below. According to the documentation commonmark is defaulted to true but I set it to true just in case. With or without the
Steps to reproduceHere is a link to my repo with the code, which can be found at:
Expected resultI am expecting a horizontal rule to be placed within the blog post Actual resultThere is no horizontal rule (a.k.a line) displayed. It seems that one or two ** or -- or __ show as gray then when the third *,-,_ is added it is hard grayed out... EnvironmentSystem: I should mention that my blog is running TailwindCSS. Not sure if that could be causing the issue... I am pretty new to Gatsby but I am more than happy to help resolve this issue (if it is indeed an issue and not a noob user error). Thank you in advance for any assistance with this. Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When testing it out in a codesandbox the Adding this let's it appear. hr {
height: 2px;
background: black;
} |
Beta Was this translation helpful? Give feedback.
When testing it out in a codesandbox the
<hr>
element appears just fine. You're missing the necessary CSS styles for it to appear. I think Tailwind only adds styles for it with the typography plugin.Adding this let's it appear.