Skip to content

Commit

Permalink
Use @wiki.page_class in Gollum::Markup where appropriate. Fixes gollu…
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Oct 28, 2010
1 parent 996f81d commit 74b7248
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,3 +1,8 @@
# HEAD

* Bug Fixes
* Use @wiki.page_class in Gollum::Markup where appropriate (#63).

# 1.1.0 / 2010-10-28

* Major Enhancements
Expand Down
4 changes: 2 additions & 2 deletions lib/gollum/markup.rb
Expand Up @@ -284,15 +284,15 @@ def process_file_link_tag(tag, no_follow = false)
def process_page_link_tag(tag, no_follow = false)
parts = tag.split('|')
name = parts[0].strip
cname = Page.cname((parts[1] || parts[0]).strip)
cname = @wiki.page_class.cname((parts[1] || parts[0]).strip)
tag = if name =~ %r{^https?://} && parts[1].nil?
%{<a href="#{name}">#{name}</a>}
else
presence = "absent"
link_name = cname
page, extra = find_page_from_name(cname)
if page
link_name = Page.cname(page.name)
link_name = @wiki.page_class.cname(page.name)
presence = "present"
end
link = ::File.join(@wiki.base_path, CGI.escape(link_name))
Expand Down

0 comments on commit 74b7248

Please sign in to comment.