summaryrefslogtreecommitdiff
path: root/lib/redcarpet/render/gitlab_html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redcarpet/render/gitlab_html.rb')
-rw-r--r--lib/redcarpet/render/gitlab_html.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb
index c3378d6a18f..53c5a1e09c0 100644
--- a/lib/redcarpet/render/gitlab_html.rb
+++ b/lib/redcarpet/render/gitlab_html.rb
@@ -10,6 +10,11 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
super options
end
+ def normal_text(text)
+ return text unless text.present?
+ text.gsub("'", "&rsquo;")
+ end
+
def block_code(code, language)
# New lines are placed to fix an rendering issue
# with code wrapped inside <h1> tag for next case: