mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Added test for markdown bug with linking [ul]
and [poll]
This commit is contained in:
parent
3d42c2d515
commit
36f53790f4
2 changed files with 7 additions and 4 deletions
|
@ -150,6 +150,10 @@ test("Links", function() {
|
|||
cooked("[Link](http://www.example.com) (with an outer \"description\")",
|
||||
"<p><a href=\"http://www.example.com\">Link</a> (with an outer \"description\")</p>",
|
||||
"it doesn't consume closing parens as part of the url");
|
||||
|
||||
cooked("[ul][1]\n\n[1]: http://eviltrout.com",
|
||||
"<p><a href=\"http://eviltrout.com\">ul</a></p>",
|
||||
"it can use `ul` as a link name");
|
||||
});
|
||||
|
||||
test("simple quotes", function() {
|
||||
|
|
7
vendor/assets/javascripts/better_markdown.js
vendored
7
vendor/assets/javascripts/better_markdown.js
vendored
|
@ -1186,15 +1186,14 @@
|
|||
this,
|
||||
text.substr( m.index ), m, previous_nodes || [] );
|
||||
|
||||
if(!res){
|
||||
// fallback
|
||||
// If no inline code executed, fallback
|
||||
if (!res) {
|
||||
var fn = this.dialect.inline[m[1][0]];
|
||||
if(fn) {
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue