0.3.4 • Published 3 years ago
cf2md v0.3.4
cf2md
Transform from confluence flavored HTML to Markdown with enhanced features.
TOC
Usage
Install
# npm
npm i -g cf2md
# pnpm
pnpm i -g cf2md
# yarn
yarn global add cf2md
CLI
Usage: cf2md [options] [input]
Arguments:
input Input HTML codes
Options:
-V, --version output the version number
-i, --input <path> Input HTML file
-o, --output <path> Output Markdown file
-h, --help display help for command
API
import fs from 'fs'
import { cf2md } from 'cf2md'
// string
const markdown = cf2md(html)
// stream
cf2md(fs.createReadStream(htmlFile)).pipe(fs.createWriteStream(mdFile))
Changelog
Detailed changes for each release are documented in CHANGELOG.md.