trac-wiki 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trac-wiki/parser.rb +1 -1
- data/lib/trac-wiki/version.rb +1 -1
- data/test/parser_test.rb +1 -0
- metadata +1 -1
data/lib/trac-wiki/parser.rb
CHANGED
@@ -252,7 +252,7 @@ module TracWiki
|
|
252
252
|
when /\A \[ \s* ([^\[|]*?) \s* (\|\s*(.*?))? \s* \] /mx
|
253
253
|
str = $'
|
254
254
|
link, content, whole= $1, $3, $&
|
255
|
-
make_link(link, content, whole)
|
255
|
+
make_link(link, content, "[#{whole}]")
|
256
256
|
when /\A \[\[ \s* ([^|]*?) \s* (\|\s*(.*?))? \s* \]\] /mx
|
257
257
|
str = $'
|
258
258
|
link, content, whole= $1, $3, $&
|
data/lib/trac-wiki/version.rb
CHANGED
data/test/parser_test.rb
CHANGED
@@ -468,6 +468,7 @@ describe TracWiki::Parser do
|
|
468
468
|
# Not escaping inside URLs
|
469
469
|
tc "<p><a href=\"http://example.org/~user/\">http://example.org/~user/</a></p>\n", "http://example.org/~user/"
|
470
470
|
tc "<p><a href=\"http://example.org/~user/\">http://example.org/~user/</a></p>\n", "[http://example.org/~user/]"
|
471
|
+
tc "<p>[[http://example.org/~user/]]</p>\n", "[http://example.org/~user/]", :no_link=>true
|
471
472
|
|
472
473
|
# Escaping links
|
473
474
|
tc "<p>http://www.example.org/</p>\n", "!http://www.example.org/"
|