I’m recently writing a README.md and I want to decorate it with styles available in CSS,
text-align: center for example, since the
<center> tag and the
align attribute is deprecated as said in MDN. So I used a HTML block in the markdown file:
<div style="text-align: center;"> *Here are some markdowns.* </div>
However when GitHub rendered it, the
style attribute was automatically removed and no CSS style was applied.
<div> <p><i>Here are some markdowns.</i></p> </div>
I wonder if there is a way to use CSS within a markdown file. If not, I’d like to know why. Thank you!