Vuepress: doesn't support checkbox in markdown

Created on 7 Nov 2018  ·  6Comments  ·  Source: vuejs/vuepress




  • [ ] I confirm that this is a issue rather than a question.




Bug report

Version

Steps to reproduce

What is expected?

What is actually happening?

Other relevant information

  • Your OS:
  • Node.js version:
  • Browser version:
  • Is this a global or local install?
  • Which package manager did you use for the install?

Most helpful comment

As per 1.0, extendMarkdown

module.exports = {
  markdown: {
    extendMarkdown: md => {
      md.use(require('markdown-it-task-lists'))
    }
  }
}

.vuepress/styles/index.styl

.contains-task-list LI
{
list-style-type:none;
}

All 6 comments

module.exports = {
  markdown: {
    config: md => {
      md.use(require('markdown-it-task-lists'))
    }
  }
}

@ulivz Close this issue 😎

This is not exactly same with https://blog.github.com/2014-04-28-task-lists-in-all-markdown-documents/
add follow css in override.styl to remove leading dots.

.contains-task-list LI
{
list-style-type:none;
}

As per 1.0, extendMarkdown

module.exports = {
  markdown: {
    extendMarkdown: md => {
      md.use(require('markdown-it-task-lists'))
    }
  }
}

.vuepress/styles/index.styl

.contains-task-list LI
{
list-style-type:none;
}

As per 1.0, extendMarkdown

module.exports = {
  markdown: {
    extendMarkdown: md => {
      md.use(require('markdown-it-task-lists'))
    }
  }
}

.vuepress/styles/index.styl

.contains-task-list LI
{
list-style-type:none;
}

感谢,成功解决问题

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaomd picture gaomd  ·  3Comments

kid1412621 picture kid1412621  ·  3Comments

higuoxing picture higuoxing  ·  3Comments

sankincn picture sankincn  ·  3Comments

lileiseven picture lileiseven  ·  3Comments