hexo-theme-unit-test icon indicating copy to clipboard operation
hexo-theme-unit-test copied to clipboard

fix: categories & tags tests.

Open TooBug opened this issue 3 years ago • 4 comments

  1. Fix categories and tags front matter .
  2. Fix nested lists. (4 spaces or tab, not 2 spaces.)
  3. Fix dl.(One dl tag with multi dt&dd tags are not rendered as intended.)

TooBug avatar Nov 24 '21 01:11 TooBug

  • Fix nested lists. (4 spaces or tab, not 2 spaces.)

Markdown supports 2 spaces indent. Just add extra 4 spaces and tab tests, leave 2 spaces ones as they are.

SukkaW avatar Nov 24 '21 11:11 SukkaW

@SukkaW Not really. Some packages allows 2 spaces, but not marked, which Hexo uses.

So the html is not correct if using 2 spaces, makes the tests no meaning, Because this beyond the responsibility of a theme, it's a renderer-issue.

TooBug avatar Nov 25 '21 01:11 TooBug

categories and tags front matter is working, even without indentation

https://hexo-optimize.pages.dev/all/2013/12/24/categories/ https://hexo-optimize.pages.dev/all/2013/12/24/tags/

stevenjoezhang avatar Oct 27 '22 13:10 stevenjoezhang

TOC in markdown.md is also broken, because of https://github.com/hexojs/hexo/issues/2137

Need to fix it somehow.

stevenjoezhang avatar Oct 27 '22 13:10 stevenjoezhang