Reveal.js and self-contained option #2553
hugoroy
commented
hugoroy
changed the title from Reveal.js and standalone option to Reveal.js and self-contained option
Yes, I'm seeing local references here in the head:
```html
link.href = window.location.search.match( /print-pdf/gi ) ? '/home/me/src/reveal.js/css/print/pdf.css' : '/home/me/src/reveal.js/css/print/paper.css';
```
```html
link.href = window.location.search.match( /print-pdf/gi ) ? '/home/me/src/reveal.js/css/print/pdf.css' : '/home/me/src/reveal.js/css/print/paper.css';
```
```html
<script src="/home/me/src/reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
```
and also here at the end of the body:
``` html
dependencies: [
{ src: '/home/me/src/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: '/home/me/src/reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: '/home/me/src/reveal.js/plugin/notes/notes.js', async: true }
]
});
```
Are these the ones you mean?
Here's the problem. With the exception of of `<script>` tag in the
head, these references all occur in the context of JavaScript code.
Pandoc's `--self-contained` isn't yet smart enough to parse JavaScript,
and it's not clear to me how all of these could be replaced by the raw data.
…
Oh, I see, the html5shiv.js wasn't incorporated because it's
in a comment that is designed to hide it unless an older
version of IE is used. So all is okay here. You've just
run across a limitation of `--self-contained` that I don't
see any way around. I've documented it but I don't think
there's more I can do on this issue.
+++ John MacFarlane [Nov 23 15 18:37 ]:
…
jgm
closed this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In a markdown document,
Then giving the content to pandoc:
The result will not be a completely self-contained document, as far as I can see, some reveal.js files will still be referenced (in this case, to
/local/filesystem/
).