mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 06:40:55 +08:00
FIX: allow [poll] and [ul] to be used as markdown link name
This commit is contained in:
parent
d0fe1725c8
commit
8d8b4ff781
11
vendor/assets/javascripts/better_markdown.js
vendored
11
vendor/assets/javascripts/better_markdown.js
vendored
@ -1185,6 +1185,17 @@
|
|||||||
res = this.dialect.inline[ m[1] ].call(
|
res = this.dialect.inline[ m[1] ].call(
|
||||||
this,
|
this,
|
||||||
text.substr( m.index ), m, previous_nodes || [] );
|
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.
|
// Default for now to make dev easier. just slurp special and output it.
|
||||||
res = res || [ m[1].length, m[1] ];
|
res = res || [ m[1].length, m[1] ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user