markup-split
Split a file into many parts
Last updated 6 months ago by frangio .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install markup-split 
SYNC missed versions from official npm registry.

markup-split ✂️

Split a file into many parts.

Usage

markup-split [--force|-f] [--no-adjust|-A] [FILE...]

The supported file formats are AsciiDoc (*.adoc) and Markdown (*.md).

The input files will be scanned for markup-split directives (see Syntax below), and the contents that follow each directive will be copied to new files at the specified paths.

Use --force to overwrite existing files.

Use --no-adjust to disable decrementing heading levels.

Syntax

The directives are written in comments, and have the form markup-split: [PATH].

Markdown

# Introduction

<-- markup-split: part-1.md -->

## Part 1

<-- markup-split: part-2.md -->

## Part 2

AsciiDoc

= Introduction

// markup-split: part-1.adoc

== Part 1

// markup-split: part-2.adoc

== Part 2

Current Tags

  • 0.1.0                                ...           latest (6 months ago)

1 Versions

  • 0.1.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |