-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pandoc doesn't work with reveal.js 4.x #6431
Labels
Comments
Here is the test.html in case you wish to see Output File: test.html <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="author" content="Mark Zuckerberg">
<title>Facebook</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="reveal.js/css/reset.css">
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
<link rel="stylesheet" href="reveal.js/css/theme/black.css" id="theme">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section id="title-slide">
<h1 class="title">Facebook</h1>
<p class="subtitle">How I want to take over the world</p>
<p class="author">Mark Zuckerberg</p>
</section>
<section id="what-is-reinforcement-learning" class="slide level2">
<h2>What is Reinforcement Learning?</h2>
<ul>
<li>A glorified version of Optimal Control</li>
<li>Closest thing to AI we can get</li>
</ul>
</section>
</div>
</div>
<script src="reveal.js/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
// Push each slide change to the browser history
history: true,
// Optional reveal.js plugins
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>
~ |
Yeah, looks like revealjs 4.x is not 100% API-compatible with 3.x.... but the following works:
|
mb21
changed the title
Pandoc no longer works with RevealJS
Pandoc doesn't work with reveal.js 4.x
Jun 6, 2020
ah, actually on current master of pandoc, this should already be fixed – will be in pandoc 2.9.3. meanwhile, you can try a nightly-build. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
pandoc version: 2.9.2.1
Reproduce Steps
Step 1
Create a base Markdown file
test.md
Step 2
Get the newest RevealJS
Step 3
Compile a RevealJS HTML file
Step 4: Trying to see the output
Error on the Firefox console
Trying via a local server
On the same location, enter the following command and go to http://0.0.0.0:8000/ on your browser
A Few of the Problems I've found
/reveal.js/css/
. Now they are in/reveal.js/dist/
Reveal
that is located in/reveal.js/js/reveal.js
is no longer being able to be properly imported. In older versions of, the classReveal
was declared asvar
, but now it is declared asconst
. The fact that this class is not being properly imported breaks all of the other functionality, thus rendering a basic HTML without any stylingThe text was updated successfully, but these errors were encountered: