Customized Types in GitHub Readme Information | CSS-Methods
by Phil Tadros
March 31, 2023
2023-03-31 09:21:09
Despite the fact that GitHub Readme information (sometimes ./readme.md
) are Markdown, and though Markdown helps HTML, you may’t put <fashion>
or <script>
tags init. (Nicely, you may, they only get stripped.) So you may’t apply {custom} types there. Or are you able to?
- You need to use SVG as an
<img src="https://css-tricks.com/custom-styles-in-github-readmes/./file.svg" alt="" />
(wherever). - When used that method, even stuff like animations inside them play (wow).
- SVG has stuff like
<textual content>
for textual content material, but additionally<foreignObject>
for normal ol’ HTML content material. - SVG help
<fashion>
tags. - Your
readme.md
file does help<img>
with SVG sources.
Sindre Sorhus mixed all that into an example.
That very same SVG supply will work right here:
What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0