1 # remark [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat]
3 The [**remark**][remark] processor is a markdown processor powered by
6 * Interface by [**unified**][unified]
7 * [**MDAST**][mdast] syntax tree
8 * Parses markdown to the tree with [**remark-parse**][parse]
9 * [Plug-ins][plugins] transform the tree
10 * Compiles the tree to markdown using [**remark-stringify**][stringify]
12 Don’t need the parser? Or the compiler? [That’s OK][unified-usage].
25 var remark = require('remark');
26 var recommended = require('remark-preset-lint-recommended');
27 var html = require('remark-html');
28 var report = require('vfile-reporter');
33 .process('## Hello world!', function (err, file) {
34 console.error(report(err || file));
35 console.log(String(file));
42 1:1 warning Missing newline character at end of file final-newline remark-lint
50 [MIT][license] © [Titus Wormer][author]
54 [build-badge]: https://img.shields.io/travis/wooorm/remark.svg
56 [build-status]: https://travis-ci.org/wooorm/remark
58 [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/remark.svg
60 [coverage-status]: https://codecov.io/github/wooorm/remark
62 [chat-badge]: https://img.shields.io/gitter/room/wooorm/remark.svg
64 [chat]: https://gitter.im/wooorm/remark
66 [license]: https://github.com/wooorm/remark/blob/master/LICENSE
68 [author]: http://wooorm.com
70 [npm]: https://docs.npmjs.com/cli/install
72 [remark]: https://github.com/wooorm/remark
74 [unified]: https://github.com/wooorm/unified
76 [mdast]: https://github.com/wooorm/mdast
78 [parse]: https://github.com/wooorm/remark/blob/master/packages/remark-parse
80 [stringify]: https://github.com/wooorm/remark/blob/master/packages/remark-stringify
82 [plugins]: https://github.com/wooorm/remark/blob/master/doc/plugins.md
84 [unified-usage]: https://github.com/wooorm/unified#usage