class Docwatch::MarkdownRenderer
Public Instance Methods
body()
click to toggle source
# File lib/docwatch/renderer/markdown.rb, line 15 def body Redcarpet::Markdown.new( Redcarpet::Render::HTML, fenced_code_blocks: true, autolink: true, tables: true, footnotes: true, ).render(contents) end
head()
click to toggle source
# File lib/docwatch/renderer/markdown.rb, line 5 def head css = File.read(Docwatch.root_dir + '/res/github-markdown.css') return <<~EOF <title>#{file_path} - docwatch</title> <style> #{css} </style> EOF end