Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jekyll-pandoc-multiple-formats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edsl
jekyll-pandoc-multiple-formats
Commits
4f174406
Commit
4f174406
authored
Aug 1, 2013
by
fauno
Browse files
Options
Downloads
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pandoc.rb
+19
-11
19 additions, 11 deletions
pandoc.rb
with
19 additions
and
11 deletions
pandoc.rb
+
19
−
11
View file @
4f174406
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment