diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2013-10-10 16:29:16 +0400 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2013-10-10 16:29:16 +0400 |
commit | 5b23a7bbb9cc47cda3111a5213b3433303c3e143 (patch) | |
tree | 5536667ac5bba94c67ffc5e71b866d457ccb1655 /lib/redcarpet | |
parent | 5277ac1b15edbb6dd7aa7a5cadee0efc07cdb3d4 (diff) |
Cover a special case.
Diffstat (limited to 'lib/redcarpet')
-rw-r--r-- | lib/redcarpet/render/gitlab_html.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb index b03c4dbfe1b..5ac37625d2d 100644 --- a/lib/redcarpet/render/gitlab_html.rb +++ b/lib/redcarpet/render/gitlab_html.rb @@ -7,6 +7,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML @template = template @project = @template.instance_variable_get("@project") @ref = @template.instance_variable_get("@ref") + @request_path = @template.instance_variable_get("@path") super options end @@ -34,7 +35,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML end def preprocess(full_document) - h.create_relative_links(full_document, @project.path_with_namespace, @ref, is_wiki?) + h.create_relative_links(full_document, @project.path_with_namespace, @ref, @request_path, is_wiki?) end def postprocess(full_document) |