Skip to content

Setting markdown is invalid after upgrading to 0.10.0 #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
quanzaiyu opened this issue May 29, 2018 · 1 comment
Closed

Setting markdown is invalid after upgrading to 0.10.0 #526

quanzaiyu opened this issue May 29, 2018 · 1 comment

Comments

@quanzaiyu
Copy link

Bug report

Version

0.10.0

Steps to reproduce

It is valid to set markdown before the upgrade, and now it is invalid to set markdown.

config.js look like this

module.exports = {
  ...
  markdown: {
    anchor: { permalink: false },
    toc: { includeLevel: [1, 2, 3] },
    config: md => {
      md.use(require('markdown-it-sub'))
      md.use(require('markdown-it-sup'))
      md.use(require('markdown-it-mark'))
      md.use(require('markdown-it-ins'))
      md.use(require('markdown-it-abbr'))
      md.use(require('markdown-it-kbd'))
      ...
    }
  },
  ...
}

https://github.com/quanzaiyu/xiaoyulive-vuepress/blob/master/website/.vuepress/config.js

What is expected?

The markdown-it plug-in should be loaded and effective.

What is actually happening?

The markdown-it plug-in ineffective.

Other relevant information

  • Your OS: Windows 10 1709
  • Node.js version: v10.1.0
  • Browser version: Chrome63
  • Is this a global or local install? global
  • Which package manager did you use for the install? yarn
@ulivz
Copy link
Member

ulivz commented May 29, 2018

Cannot reproduced at my side:

  "dependencies": {
    "markdown-it-sub": "^1.0.0",
    "vuepress": "^0.10.0"
  }

Config:

  markdown: {
    config: md => {
      md.use(require('markdown-it-sub'))
    }
  },

Input:

# Test 

H~2~0

Output:

image

Please double confirm for that, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants