MD_Splitter

Accepts a markdown file as input and uses Kramdown to convert to HTML. Optionally splits the source document using a given string and saves multiple output docs.

Change Log

V0.2.0

  • Prepend page id's in the manifest with the sanitized manifest id

Install

% gem install md_splitter

SYNOPSIS:

md_splitter split [options] files

OR

md_splitter [options] files

OPTIONS:

-s, --split_on STRING Splits the source doc into multiple html files on the provided string

-o, --output_path STRING Defines custom output path for saving resulting files

-d, --dry_run STRING Non-destructive test pass

EXAMPLES:

  • Convert a markdown file to htm

    md_splitter path/to/file.md
    
  • Split a markdown file into multiple htm

    md_splitter --split_on '---' path/to/file.md
    
  • Specify an output directory for the converted files

    md_splitter --output_path 'target/file/path' path/to/file.md
    
  • Use dry run to preview results without changing any files

    md_splitter --dry_run path/to/file.md