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
117 stars 22 forks source link

Can't use markdown-it-center-text #14

Closed MayakoAelys closed 6 years ago

MayakoAelys commented 6 years ago

Hello,

I just tried your plugin and it works fine so far (although I'll have one question later). I wanted to add this markdown-it plugin: markdown-it-center-text but it doesn't work at all. I get no error when I generate my site (even after an hexo clean).

What I did:

And I just see the plain arrows as if the plugin haven't be executed 😢 What did I do wrong?

I used this as a test article:

---
title: test
date: 2018-06-18 16:50:09
tags:
---
# Test11
## Test22
->blabla<-
### Test33

PS: For the emoji question: how can I use twemoji instead of the OS ones without modifying your plugin source files?

CHENXCHEN commented 6 years ago

Hi,
This plugin works fine. _config.yml shoud as below:

markdown_it_plus:
    plugins:
        - plugin:
            name: markdown-it-center-text
            enable: true
CHENXCHEN commented 6 years ago

hexo-renderer-markdown-it-plus using markdown-it-emoji plugin for emoji, according the doc, you can't use twemoji instead without modifying source files.

MayakoAelys commented 6 years ago

Okay I tried again today after updating my node-modules and now it does work. I guess it has been fixed somewhere ¯\_(ツ)_/¯

Thanks for your help!