Skip to content

Commit

Permalink
Reveal.js improvements.
Browse files Browse the repository at this point in the history
Changed name to revealjs (from reveal_js).
Set revealjs-url template variable to 'reveal.js' by default.
  • Loading branch information
jgm committed Mar 24, 2013
1 parent 388acaa commit da1e388
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pandoc.hs
Expand Up @@ -1113,7 +1113,7 @@ main = do
>>= writerFn outputFile . handleEntities
where htmlFormat = writerName' `elem`
["html","html+lhs","html5","html5+lhs",
"s5","slidy","slideous","dzslides","reveal_js"]
"s5","slidy","slideous","dzslides","revealjs"]
selfcontain = if selfContained && htmlFormat
then makeSelfContained datadir
else return
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc.hs
Expand Up @@ -231,7 +231,7 @@ writers = [
,("dzslides" , PureStringWriter $ \o ->
writeHtmlString o{ writerSlideVariant = DZSlides
, writerHtml5 = True })
,("reveal_js" , PureStringWriter $ \o ->
,("revealjs" , PureStringWriter $ \o ->
writeHtmlString o{ writerSlideVariant = RevealJsSlides
, writerHtml5 = True })
,("docbook" , PureStringWriter writeDocbook)
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Slides.hs
Expand Up @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Portability : portable
Utility functions for splitting documents into slides for slide
show formats (dzslides, reveal_js, s5, slidy, slideous, beamer).
show formats (dzslides, revealjs, s5, slidy, slideous, beamer).
-}
module Text.Pandoc.Slides ( getSlideLevel, prepSlides ) where
import Text.Pandoc.Definition
Expand Down
1 change: 1 addition & 0 deletions src/Text/Pandoc/Writers/HTML.hs
Expand Up @@ -208,6 +208,7 @@ inTemplate opts tit auths authsMeta date toc body' newvars =
, ("idprefix", writerIdentifierPrefix opts)
, ("slidy-url", "http://www.w3.org/Talks/Tools/Slidy2")
, ("slideous-url", "slideous")
, ("revealjs-url", "reveal.js")
, ("s5-url", "s5/default") ] ++
[ ("html5","true") | writerHtml5 opts ] ++
(case toc of
Expand Down

0 comments on commit da1e388

Please sign in to comment.