Commit a133cf3b authored by Sacred Seven's avatar Sacred Seven

Provides a temporary solution for #4

parent 65fe3f92
......@@ -50,7 +50,7 @@ module GitlabMarkdownHelper
end
html_doc = Nokogiri::HTML(@markdown.render(text))
html_doc.css(':not(li)').each { |dom| dom[:dir] = :auto }
html_doc.to_html.html_safe
html_doc.to_html.gsub(%r{\{anchor=([\w-]+)\}}m) { |match| "<a name=\'#{$1}\'></a>" }.html_safe
end
# Return the first line of +text+, up to +max_chars+, after parsing the line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment