Skip to content
Snippets Groups Projects
Commit 4f174406 authored by fauno's avatar fauno
Browse files

Merge pull request #4 from mauriciopasquier/fix-3

Fix #3
parents 48ee041e e37db93c
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,6 @@ class PandocGenerator < Generator ...@@ -42,7 +42,6 @@ class PandocGenerator < Generator
# Make the markdown header so pandoc receives metadata # Make the markdown header so pandoc receives metadata
content = "% #{post.data['title']}\n" content = "% #{post.data['title']}\n"
content << "% #{post.data['author']}\n" content << "% #{post.data['author']}\n"
# content << "% #{post.date}\n\n"
content << post.content content << post.content
# Do the stuff # Do the stuff
...@@ -79,6 +78,15 @@ module Converters ...@@ -79,6 +78,15 @@ module Converters
output output
end end
def matches(ext)
rgx = '(' + @config['markdown_ext'].gsub(',','|') +')'
ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
end
def output_ext(ext)
".html"
end
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment