Reputation: 7909
I am totally new to markdown/css, and I am trying to set up my blog at Github Pages.
I have problems displaying the table headers correctly.
This is how I create them in my .md
file, which is coming directly from a notebook generated with Jupyter and R:
<table>
<thead><tr><th></th><th scope=col>ID</th><th scope=col>City</th><th scope=col>Province</th><th scope=col>Italians</th><th scope=col>Population</th><th scope=col>Percentage</th><th scope=col>Lat</th><th scope=col>Lon</th></tr></thead>
<tbody>
and this is how they get visualized by Jekyll-now:
What am I doing wrong here?
EDIT
This is the html
code with which the table headers are rendered:
<p><br />City Province Italians Population % Italians Lat Lon</br>
I don't know if that's due to Jekyll using a different markdown engine than Github.
Upvotes: 0
Views: 383
Reputation: 246
I also encountered this issue today and finally I find a way to make it work. It's quite simple, you only need to add quotation marks after scope=
like below:
<table>
<thead><tr><th></th>
<th scope="col">ID</th>
<th scope="col">City</th>
<th scope="col">Province</th>
<th scope="col">Italians</th>
<th scope="col">Population</th>
<th scope="col">Percentage</th>
<th scope="col">Lat</th>
<th scope="col">Lon</th></tr></thead>
<tbody>
You can check my post on github pages at https://juntaodong.com/BANA7038-HW1/ and the corresponding raw markdown at https://raw.githubusercontent.com/JuntaoDong/juntaodong.github.io/master/_posts/2019-01-23-BANA7038-HW1.md
Upvotes: 1