Browse Source

typo fixes

pull/24/head
Vitaly Puzrin 10 years ago
parent
commit
96a1c73405
  1. 4
      docs/architecture.md
  2. 2
      lib/parser_block.js
  3. 2
      lib/parser_inline.js

4
docs/architecture.md

@ -123,10 +123,10 @@ For example, let's replace images with vimeo links to player's iframe:
```js ```js
var md = require('markdown-it')(); var md = require('markdown-it')();
var defaultRender = md.renderer.image, var defaultRender = md.renderer.rules.image,
vimeoRE = /^https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/; vimeoRE = /^https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/;
md.renderer.image = function (tokens, idx, options, env, self) { md.renderer.rules.image = function (tokens, idx, options, env, self) {
var id; var id;
if (vimeoRE.test(tokens[idx].href)) { if (vimeoRE.test(tokens[idx].href)) {

2
lib/parser_block.js

@ -99,7 +99,7 @@ var SPACES_RE = /\u00a0/g;
var NULL_RE = /\u0000/g; var NULL_RE = /\u0000/g;
/** /**
* ParserBlock.parse(str, options, env, outTokens) * ParserBlock.parse(str, md, env, outTokens)
* *
* Process input string and push block tokens into `outTokens` * Process input string and push block tokens into `outTokens`
**/ **/

2
lib/parser_inline.js

@ -141,7 +141,7 @@ ParserInline.prototype.tokenize = function (state) {
/** /**
* ParserInline.parse(str, options, env, outTokens) * ParserInline.parse(str, md, env, outTokens)
* *
* Process input string and push inline tokens into `outTokens` * Process input string and push inline tokens into `outTokens`
**/ **/

Loading…
Cancel
Save