Browse Source

Changelog update & typo fixes

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
c63543cd19
  1. 8
      CHANGELOG.md
  2. 12
      README.md

8
CHANGELOG.md

@ -1,4 +1,10 @@
2.1.1 / 2014-12-23
2.1.3 / WIP
------------------
- Added curring to `set`/`configure`/`enable`/`disable` methods.
2.1.2 / 2014-12-23
------------------
- Exposed helpers into parser instances (for plugins).

12
README.md

@ -85,13 +85,13 @@ active syntax rules and options for common use cases.
```js
// commonmark mode:
// commonmark mode
var md = require('markdown-it')('commonmark');
// default mode:
// default mode
var md = require('markdown-it')();
// enable everything:
// enable everything
var md = require('markdown-it')('full', {
html: true,
linkify: true,
@ -132,7 +132,7 @@ Probably, you will never need it. But you can change options after
constructor call.
```js
var md = require('markdown-it')();
var md = require('markdown-it')()
.set({ html: true, breaks: true })
.set({ typographer, true });
```
@ -239,7 +239,7 @@ old-style rules via external plugins if you prefer.
```js
// Activate/deactivate rules
var md = require('markdown-it')();
var md = require('markdown-it')()
.enable([ 'ins', 'mark' ])
.disable([ 'table' ]);
@ -251,7 +251,7 @@ md = require('markdown-it')('full', {
});
// Manually enable rules, disabled by default:
var md = require('markdown-it')();
var md = require('markdown-it')()
.enable([
/* core */
'abbr',

Loading…
Cancel
Save