lib/brief/document/rendering.rb in brief-1.11.0 vs lib/brief/document/rendering.rb in brief-1.11.1
- old
+ new
@@ -1,4 +1,6 @@
+require 'github/markdown'
+
module GitHub
class Markdown
def self.render_gfm(content)
self.to_html(content, :gfm).tap do |html|
html.gsub!(/<h([1-6])>(.+?)<\/h\1>/,"<h\\1 data-level='\\1' data-heading='\\2'>\\2<\/h\\1>")