1.0.3 • Published 9 years ago

marked-with-style v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

marked-with-style

DEPRECATED: use node-brucedown instead.


Wrap marked's output with github markdown style.

Build Status

install

$ npm i -g marked-with-style

example

$ marked-with-style input.md > output.html

input.md

# input markdown

just for test.

output.html

<html><head><style>
...
</style><style>.markdown-body{min-width:200px;max-width:790px;margin:0 auto;padding:30px}</style></head>
<body class='markdown-body'><h1 id="input-markdown">input markdown</h1>
<p>just for test.</p>
</body></html>

usage

marked-with-style {-i INFILE -o OUTFILE}

    -i File to read. Default: STDIN.
    -o File to write. Default: STDOUT.

    marked arguments:
    --gfm
        Enable GitHub flavored markdown. Default: true.
    --tables
        Enable GFM tables. This option requires the gfm option to be true. Default: true.
    --breaks
        Enable GFM line breaks. This option requires the gfm option to be true. Default: true.
    --smartLists
        Use smarter list behavior than the original markdown. Default: true.
    --pedantic
        Conform to obscure parts of markdown.pl as much as possible. Default: false.
    --sanitize
        Sanitize the output. Ignore any HTML that has been input. Default: false.
    --smartypants
        Use "smart" typograhic punctuation for things like quotes and dashes. Default: false.

license

MIT