@simplrjs/markdown
Markdown generator
Last updated 3 years ago by simplrjs-admin .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @simplrjs/markdown 
SYNC missed versions from official npm registry.

NPM version Build Coveralls Dependencies Dev Dependencies

@simplrjs/markdown

Creating markdown made easily.

Get started

$ npm install @simplrjs/markdown --save

Features

  • Creating Markdown output

TODO

  • Markdown file parser

Simple examples

Using MarkdownBuilder.

import * as fs from "fs-extra";
import { MarkdownBuilder } from "@simplrjs/markdown";

const builder = new MarkdownBuilder()
    .UnderlineHeader("Markdown Header", 1)
    .EmptyLine()
    .Text(md => `Hello ${md.Bold("World")}!`)
    .Text("It's so easy to print markdown this way!");

fs.writeFile("./text.md", builder.Build());

You can use MarkdownGenerator directly.

import * as fs from "fs-extra";
import { MarkdownGenerator } from "@simplrjs/markdown";

let output: string[] = [];

output = output.concat(MarkdownGenerator.UnderlineHeader("Markdown Header", 1));
output.push("");
output.push(`Hello ${MarkdownGenerator.Bold("World")}!`);

fs.writeFile("./text.md", output.join("\n"));

API

WIP

License

Released under the MIT license.

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

11 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.0-beta                                ...           3 years ago
Downloads
Today 0
This Week 7
This Month 24
Last Day 2
Last Week 3
Last Month 12
Dependencies (2)
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |