CHENXCHEN / hexo-renderer-markdown-it-plus

Markdown-it is a markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
https://chchc.me/hexo-article/2017/07/27/hexo-renderer-markdown-it-plus-plugin-demo/
MIT License
115 stars 22 forks source link

Can't add or disable plugin #1

Closed grigorii-horos closed 7 years ago

grigorii-horos commented 7 years ago

I can't add or remove plugin when I use _config.yml

This doesn't work:

        - plugin:
            name: markdown-it-container
            enable: true
        - plugin:
            name: markdown-it-sub
            enable: false
        - plugin:
            name: markdown-it-sup
            enable: false
CHENXCHEN commented 7 years ago

It is work for me when i use config.yml, see the code below.

markdown_it_plus:
    highlight: true
    html: true
    xhtmlOut: true
    breaks: true
    langPrefix:
    linkify: true
    typographer:
    quotes: “”‘’
    pre_class: highlight
    plugins:
        - plugin:
            name: markdown-it-sub
            enable: false
        - plugin:
            name: markdown-it-sup
            enable: false

When i config it, it shown as below: image The default is shown as below: image

tips: maybe you need run hexo clean for test.

grigorii-horos commented 7 years ago

Yes, it work when I executed hexo clean Thank you.