Skip to content

Commit

Permalink
updated renderer example for vimeo
Browse files Browse the repository at this point in the history
wrong function and attribute name used
  • Loading branch information
spank79 committed May 8, 2015
1 parent 1c1f0c3 commit 5b288d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var defaultRender = md.renderer.rules.image,

md.renderer.rules.image = function (tokens, idx, options, env, self) {
var token = tokens[idx],
aIndex = token.attrIdx('href');
aIndex = token.attrIndex('src');

if (vimeoRE.test(token.attrs[aIndex][1])) {

Expand Down

0 comments on commit 5b288d2

Please sign in to comment.