lib/vimwiki_markdown/template.rb in vimwiki_markdown-0.2.6 vs lib/vimwiki_markdown/template.rb in vimwiki_markdown-0.3.1
- old
+ new
@@ -1,7 +1,6 @@
-require 'pygments.rb'
-
+require 'rouge'
module VimwikiMarkdown
class Template
def initialize(options)
@options = options
@@ -29,10 +28,10 @@
@template = @template.gsub('%root_path%', root_path)
end
def pygments_wrapped_in_tags
"<style type=\"text/css\">
- #{Pygments.css('.highlight')}
+ #{::Rouge::Themes::Github.render(scope: '.highlight')}
</style>"
end
def root_path
options.root_path