metalsmith-markdown-parse
A metalsmith plugin to parse markdown into file metadata
Last updated 6 months ago by jmatsushita .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install metalsmith-markdown-parse 
SYNC missed versions from official npm registry.

metalsmith-markdown-parse

Version Build Status

A metalsmith plugin to parse markdown into (at some point) arbitrary structures. For now parses workflows for the dfak project.

Installation

$ npm install metalsmith-markdown-parse

CLI Usage

Install via npm and then add the metalsmith-markdown-parse key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-markdown-taxonomy": {
      "title": "Workflow",
      "replace": "<a href='$start'>Start</a>"
    }
  }
}

A level 2 header section matching the title such as:

## Workflow

### step_identifier

A question?

  - [Next](#next_step)
  - [End step](#final_step_end)

### next_step

> Some contextual information about this step

Another question?

  - [Back](#step_identifier)
  - [End](#final_step_end)

### final_step_end

Some final text.

#### An optional sub title

:[](organisations?services=web_protection)

## The end

Will be parsed into the following file structure:

/
├── index
│   └── questions
│       ├── final_step_end.md
│       ├── next_step.md
│       └── step_identifier.md
└── index.md

With the root index.md file starting the workflow with the replace pattern:

<a href="questions/step_identifier">Start</a>
## The end

and each question linked to each other with permalink transformation, and transclusion links :[](folder?key=value) interpreted (this will probably move to another module soon).

License

MIT

Current Tags

  • 0.1.10                                ...           latest (6 months ago)

9 Versions

  • 0.1.10                                ...           6 months ago
  • 0.1.8                                ...           7 months ago
  • 0.1.7                                ...           7 months ago
  • 0.1.6                                ...           8 months ago
  • 0.1.5                                ...           8 months ago
  • 0.1.2                                ...           8 months ago
  • 0.1.0                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |