docpress / docpress-core

Parses projects and turns them into a documentation website
3 stars 6 forks source link

modify parameters format to array for markdown-it plugin #204

Closed dwatow closed 4 years ago

dwatow commented 4 years ago

propose a new config way for the markdown-it plugin. you can install markdown-it-checkbox, markdown-it-abbr, ....and use config like this:

  "markdown": {
    "plugins": [
      "abbr",
      {
        "name": "container",
        "options": "success"
      },
      {
        "name": "container",
        "options": "info"
      },
      {
        "name": "container",
        "options": "warning"
      },
      {
        "name": "container",
        "options": "danger"
      },
      {
        "name": "emoji",
        "options": {
          "shortcuts": {}
        }
      },
      "deflist",
      "footnote",
      "imsize",
      "ins",
      "mark",
      "regexp",
      "sub",
      "sup",
      "checkbox"
    ]
  }
coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.4%) to 96.496% when pulling 869566a7bc9ab80137b7f00bb0d26160d5f09981 on dwatow:markdown-it-plug-formating-array into 0c48454142d895f3988c3b9e673a62ec5a6c269d on docpress:master.

knownasilya commented 4 years ago

Looks like a great change. For me to merge and release this right now we'd need to make it backwards compatible, so support both formats.

dwatow commented 4 years ago

Could you update dependencies of docpress in npm? I cannot use this modified version of docpress-core. thank you

knownasilya commented 4 years ago

Try reinstalling your version of docpress.