pages-themes / slate

Slate is a Jekyll theme for GitHub Pages
https://pages-themes.github.io/slate/
Creative Commons Zero v1.0 Universal
303 stars 981 forks source link

Collapsible elements are not rendered correctly #67

Closed MrTomRod closed 3 years ago

MrTomRod commented 3 years ago

This markdown code:

<details>
  <summary>Click here to expand.</summary>

example code: `code`

- list
- list
- list

</details>

Should have this expandable element as a result:

Click here to expand. example code: `code` - list - list - list

It works on regular GitHub, but stopped working recently with this theme jekyll-theme-slate.

Real example: my markdown file -> result

In case I change the page later, here's a screenshot of the problem:

image

I think this bug appeared sometimes between Sept 13 and today (Sept 16).

MrTomRod commented 3 years ago

Sorry, I was confused. It probably has never worked.

The solution is to instruct GitHub Pages to use the same renderer as GitHub. Add this to _config.yml:

markdown: CommonMarkGhPages