fix the build
This commit is contained in:
parent
e663d78104
commit
5edec22e28
|
@ -134,6 +134,10 @@ Discourse.Markdown = {
|
||||||
if(/^(https?:)?\/\/[\w\.\-]+/i.test(url)) { return url; }
|
if(/^(https?:)?\/\/[\w\.\-]+/i.test(url)) { return url; }
|
||||||
// relative urls
|
// relative urls
|
||||||
if(/^\/[\w\.\-]+/i.test(url)) { return url; }
|
if(/^\/[\w\.\-]+/i.test(url)) { return url; }
|
||||||
|
// anchors
|
||||||
|
if(/^#[\w\.\-]+/i.test(url)) { return url; }
|
||||||
|
// mailtos
|
||||||
|
if(/^mailto:[\w\.\-@]+/i.test(url)) { return url; }
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,7 +56,7 @@ In this case, [this](/somethingelse/) points to something else.
|
||||||
|
|
||||||
Backslashing should suppress \[this] and [this\].
|
Backslashing should suppress \[this] and [this\].
|
||||||
|
|
||||||
[this]: foo
|
[this]: #foo
|
||||||
|
|
||||||
|
|
||||||
* * *
|
* * *
|
||||||
|
|
|
@ -19,15 +19,15 @@
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<p><a href="foo">this</a> should work</p>
|
<p><a href="#foo">this</a> should work</p>
|
||||||
|
|
||||||
<p>So should <a href="foo">this</a>.</p>
|
<p>So should <a href="#foo">this</a>.</p>
|
||||||
|
|
||||||
<p>And <a href="foo">this</a>.</p>
|
<p>And <a href="#foo">this</a>.</p>
|
||||||
|
|
||||||
<p>And <a href="foo">this</a>.</p>
|
<p>And <a href="#foo">this</a>.</p>
|
||||||
|
|
||||||
<p>And <a href="foo">this</a>.</p>
|
<p>And <a href="#foo">this</a>.</p>
|
||||||
|
|
||||||
<p>But not [that] [].</p>
|
<p>But not [that] [].</p>
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@
|
||||||
|
|
||||||
<p>Nor [that].</p>
|
<p>Nor [that].</p>
|
||||||
|
|
||||||
<p>[Something in brackets like <a href="foo">this</a> should work]</p>
|
<p>[Something in brackets like <a href="#foo">this</a> should work]</p>
|
||||||
|
|
||||||
<p>[Same with <a href="foo">this</a>.]</p>
|
<p>[Same with <a href="#foo">this</a>.]</p>
|
||||||
|
|
||||||
<p>In this case, <a href="/somethingelse/">this</a> points to something else.</p>
|
<p>In this case, <a href="/somethingelse/">this</a> points to something else.</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue