hexojs / hexo-renderer-markdown-it

Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
MIT License
349 stars 60 forks source link

Something U have to do when U use the third-party plug-in 'hexo-toc' together. #35

Closed KevinHu-1024 closed 8 years ago

KevinHu-1024 commented 8 years ago

I had replaced the default md render by hexo-renderer-markdown-it. And I installed hexo-toc.

Then I noticed the rended page had something what didn't hiden: <!---toc---> and <!---toc stop--->.

This issue need to configure hexo-renderer-markdown-it by set html: ture

eg.(hexo's _config.yml)

# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
  render:
    html: true
celsomiranda commented 8 years ago

The Tags should be processed even before the hexo-renderer-markdown-it starts. I'm inclined to say that this is a bug with hexo-toc.

Markdown-it should recieve the rendered html from hexo-toc, and not the unprocessed tags. :/

oupala commented 6 years ago

I'm encountering the exact same problem.

I created an issue on hexo-toc issue tracker.