wshuyi / markdown2slides

Tools for converting Markdown Source File to Reveal.js HTML5 slides
97 stars 20 forks source link

报错:生成html控制台报错 #8

Closed hzcheney closed 3 years ago

hzcheney commented 4 years ago

OS:macOS 10.13 pandoc:pandoc 2.9.2.1 python: 3 browser: Chrome error detail:

reset.css:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
reveal.js:449 Uncaught ReferenceError: head is not defined
    at loadScript (reveal.js:449)
    at load (reveal.js:473)
    at Object.initialize (reveal.js:381)
    at slide.html:96

我发现老师写的脚本生成的html里面head头会带上reset.css的引入,但是官方的demo.html没有找到这行引入,不知是什么原因?另外head提示未定义,暂时没有发现是什么原因。

hzcheney commented 4 years ago

目前已经解决问题,通过手动在生成的slide.html源文件底部中添加 <script src="reveal.js/lib/js/head.min.js"></script> 即可。