diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-10-10 08:32:05 +0200 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-10-10 08:32:05 +0200 |
commit | fc2adfb6e4af59e45809661e32be0d2ad3158503 (patch) | |
tree | 79252a299e22e24e1ffd31addf80980ea51a4dbf | |
parent | 1d14676e0ce0db006058e02aa0ceedf9c05e5625 (diff) | |
download | gitlab-ce-fc2adfb6e4af59e45809661e32be0d2ad3158503.tar.gz |
Add a comment why this is done.
-rw-r--r-- | lib/redcarpet/render/gitlab_html.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb index 511619631fd..54d740908d5 100644 --- a/lib/redcarpet/render/gitlab_html.rb +++ b/lib/redcarpet/render/gitlab_html.rb @@ -10,6 +10,12 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML super options end + # If project has issue number 39, apostrophe will be linked in + # regular text to the issue as Redcarpet will convert apostrophe to + # #39; + # We replace apostrophe with right single quote before Redcarpet + # does the processing and put the apostrophe back in postprocessing. + # This only influences regular text, code blocks are untouched. def normal_text(text) return text unless text.present? text.gsub("'", "’") |