I have a table with the following code. In the Markdown viewer and on GitHub pages, the color is shown correct. But not on GitHub.
|- |- |- |- |- |
| <span style="font-family: Source Code Pro; padding: 20px; background-color: #000000; color: #fff;">#000000</span> |
The result on GitHub:
The result on GitHub Pages
A table has the disadvantage that it does not move downwards at smaller screen sizes, but only to the right. How can I create a kind of grid layout?
Within GitHub, Markdown content is somewhat restricted. After Markdown is converted to HTML
(Bold added.)
The
span
tag is not included in the whitelist. Even if it was, thestyle
attribute is also missing from the whitelist. The only way I know to achieve a visual similar to what's on GitHub Pages is to use an image, as you have done here.