Closed abraj closed 2 years ago
Thanks a lot for reporting, however github's markdown render API seems not returning <ul class="task-list">
now:
await render(`
- [ ] task list
- [x] checked item
`)
'<ul>\n<li>[ ] task list</li>\n<li>[x] checked item</li>\n</ul>\n'
Maybe its another temporary bug in their API. I'll try to fix this style soon.
Maybe its another temporary bug in their API.
Maybe GitHub's markdown render API by default only renders core GFM spec. As per the spec, task list is an extension to the core GFM. Btw, I was using a markdown-it plugin for rendering the task list markdown.
I have updated the css for myself using latest generate-github-markdown-css@5.0.1
. However, I believe npm package github-markdown-css
could also be updated to include latest CSS.
Anyways, I believe this issue could now be closed.
The style is fixed in https://github.com/sindresorhus/github-markdown-css/releases/tag/v5.1.0
Thanks for the great work put into this project.
Issue Description:
After the release of
v5.0.0
, the style for task list in the following situation differs from that ofv4.0.0
(as well as GitHub style).For example, consider the following markdown (GFM) for a task list:
The rendered markup for the above markdown with styles from
github-markdown-css v5.0.0
is shown as following (screenshot): (Note the bullet visible in front of each task item)However, exactly the same markup with styles from
github-markdown-css v4.0.0
is shown as following (screenshot):The following is directly rendered using markdown code here (GitHub style):
So, I believe the bullet visible in front of each task item for
v5.0.0
should not be there.The output markup (for the above mentioned task list markdown) is given below (for reference):
As expected for the use of this library, a class named
markdown-body
exists in a parent container inside the body.As as side note, the task list demo on the demo page (https://sindresorhus.com/github-markdown-css/#task-list) also shows the bullet item in front of each task item (screenshot):