【发布时间】:2023-01-05 03:24:40
【问题描述】:
我正在通过 javascript API & gulp 启动 asciidoctor。
const options = {safe: 'unsafe', backend: 'revealjs', attributes: { 'stylesheet': 'custom.css' }};
asciidoctor.convertFile(file.path, options, );
但是生成的 HTML 仍然会生成默认的 CSS:
<link rel="stylesheet" href="node_modules/reveal.js/dist/theme/black.css" id="theme">
<!--This CSS is generated by the Asciidoctor reveal.js converter to further integrate AsciiDoc's existing semantic with reveal.js-->
<style type="text/css">
.reveal div.right {
我也尝试了很多 asciidoc 标签( customsheet 等)但没有任何效果。
供参考 :
> npx asciidoctor-revealjs --version
Asciidoctor reveal.js 5.0.0-rc.1 using Asciidoctor.js 2.2.6 (Asciidoctor 2.0.17) [https://asciidoctor.org]
Runtime Environment (node v18.2.0 on win32)
CLI version 3.5.0
谢谢你的帮助
【问题讨论】:
标签: javascript reveal.js asciidoc asciidoctor-revealjs