trac-wiki 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, $&
@@ -1,3 +1,3 @@
1
1
  module TracWiki
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
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/"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trac-wiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: