Browse Source

updated renderer example for vimeo

wrong function and attribute name used
pull/104/head
Sebastian Beyer 10 years ago
parent
commit
5b288d206c
  1. 2
      docs/architecture.md

2
docs/architecture.md

@ -118,7 +118,7 @@ var defaultRender = md.renderer.rules.image,
md.renderer.rules.image = function (tokens, idx, options, env, self) { md.renderer.rules.image = function (tokens, idx, options, env, self) {
var token = tokens[idx], var token = tokens[idx],
aIndex = token.attrIdx('href'); aIndex = token.attrIndex('src');
if (vimeoRE.test(token.attrs[aIndex][1])) { if (vimeoRE.test(token.attrs[aIndex][1])) {

Loading…
Cancel
Save