Skip to content

Markdown to HTML conversion on directories using marked.

License

Notifications You must be signed in to change notification settings

SRSsoft/marked-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marked-directory

NPM Version NPM Downloads Build Status Code Coverage Dependency Status devDependency Status

Markdown to HTML conversion on entire directories using marked

Installation

Add to your project locally

npm install marked-directory --save-dev 

Or add it globally

npm install -g marked-directory

Usage

Example

const md = require('marked-directory');

// returns a promise
md([
    './test/docs/**/*.md', 
    './test/docsBuild',
    './test/docs/',
    './'
]).then(() => console.log('done'));

Options

md(
    [
        './test/docs/**/*.md', // Glob pattern to find files
        './test/docsBuild', // Path to output rendered files
        './test/docs/', // (optional) SearchValue to find in destination paths
        './' // (optional) Replacement value if the above SearchValue is found
    ], {
        logger, // default logging is console.log
        markedOptions // override marked options
    }
);

CLI

Example

marked-directory './test/docs/**/*.md' './test/docsBuild' './test/docs/' './'

Options

marked-directory [glob to markdown files] [output directory] [path searchValue to replace] [path newValue if found by previous arg]

About

Markdown to HTML conversion on directories using marked.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published