I am seeing some differences between github rendering and rendering using your CSS.
The only thing I can think is that I am converting markdown to HTML and then styling with your CSS outside of any github containers. Have you tested this scenario?
I think there are some styles cascading from elsewhere that you are missing?
GITHUB:
USING YOUR CSS:
and
GITHUB:
USING YOUR CSS:
The differences are most obvious when you compare the computed CSS of standard github rendered markdown with your css used outside of the github page structure.
I guess you've assumed, quite reasonably, that github's markdown is self sufficient. But it looks like it is not and it relies on css from another stylesheet, at least for tables and perhaps for more.
Here's the CSS for TABLE
STANDARD GITHUB
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
border-bottom-color: rgb(128, 128, 128);
border-collapse: collapse;
border-left-color: rgb(128, 128, 128);
border-right-color: rgb(128, 128, 128);
border-top-color: rgb(128, 128, 128);
box-sizing: border-box;
color: rgb(51, 51, 51);
display: block;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 16px;
height: 149px;
line-height: 24px;
margin-bottom: 16px;
margin-top: 0px;
overflow-x: auto;
overflow-y: auto;
width: 888px;
word-wrap: break-word;
YOUR CSS OUTSIDE OF GITHUB
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
border-bottom-color: rgb(128, 128, 128);
border-collapse: collapse;
border-left-color: rgb(128, 128, 128);
border-right-color: rgb(128, 128, 128);
border-top-color: rgb(128, 128, 128);
box-sizing: border-box;
color: rgb(51, 51, 51);
display: table;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 16px;
font-style: normal;
font-variant-alternates: normal;
font-variant-caps: normal;
font-variant-east-asian: normal;
font-variant-ligatures: normal;
font-variant-numeric: normal;
font-variant-position: normal;
font-weight: normal;
height: 85px;
line-height: 18px;
margin-bottom: 16px;
margin-top: 0px;
overflow-x: visible;
overflow-y: visible;
text-align: start;
white-space: normal;
width: 978px;
word-wrap: break-word;
and for TD
STANDARD GITHUB
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
border-bottom-color: rgb(221, 221, 221);
border-bottom-style: solid;
border-bottom-width: 1px;
border-collapse: collapse;
border-image-outset: 0px;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(221, 221, 221);
border-left-style: solid;
border-left-width: 1px;
border-right-color: rgb(221, 221, 221);
border-right-style: solid;
border-right-width: 1px;
border-top-color: rgb(221, 221, 221);
border-top-style: solid;
border-top-width: 1px;
box-sizing: border-box;
color: rgb(51, 51, 51);
display: table-cell;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 16px;
height: 37px;
line-height: 24px;
padding-bottom: 6px;
padding-left: 13px;
padding-right: 13px;
padding-top: 6px;
vertical-align: middle;
width: 77.75px;
word-wrap: break-word;
YOUR CSS OUTSIDE OF GITHUB
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
border-bottom-color: rgb(221, 221, 221);
border-bottom-style: solid;
border-bottom-width: 1px;
border-collapse: collapse;
border-image-outset: 0px;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(221, 221, 221);
border-left-style: solid;
border-left-width: 1px;
border-right-color: rgb(221, 221, 221);
border-right-style: solid;
border-right-width: 1px;
border-top-color: rgb(221, 221, 221);
border-top-style: solid;
border-top-width: 1px;
box-sizing: border-box;
color: rgb(51, 51, 51);
display: table-cell;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 16px;
font-style: normal;
font-variant-numeric: normal;
font-weight: normal;
height: 21px;
line-height: 18px;
padding-bottom: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
text-align: start;
vertical-align: middle;
white-space: normal;
width: 430.171875px;
word-wrap: break-word;