Skip to content

Commit

Permalink
FIX: allow [poll] and [ul] to be used as markdown link name
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Dec 30, 2014
1 parent d0fe172 commit 8d8b4ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vendor/assets/javascripts/better_markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,17 @@
res = this.dialect.inline[ m[1] ].call(
this,
text.substr( m.index ), m, previous_nodes || [] );

if(!res){
// fallback
var fn = this.dialect.inline[m[1][0]];
if(fn) {
res = fn.call(
this,
text.substr( m.index ), m, previous_nodes || [] );
}

}
}
// Default for now to make dev easier. just slurp special and output it.
res = res || [ m[1].length, m[1] ];
Expand Down

0 comments on commit 8d8b4ff

Please sign in to comment.