我正在使用 marp-cli 创建讲座幻灯片。为了微调幻灯片内容,我创建了一个自定义 css,它扩展了 marp 默认 css 模板中实现的一些样式规则。
我的目标:我想将custom-theme.css文件中的 css 规则外部化,并将它们从.md,并将它们从幻灯片内容所在的文档中
问题:当使用选项调用custom-theme.cssusing marp-cli时--theme-set,我无法指定我的 css“扩展”默认模板的样式规则。
问题:如何指定 mycustom-theme.css是基于 marp 默认模板定义的?
预先感谢您的支持。
如果其他用户遇到同样的问题,问题的解决方案以 Yuki Hattori(marp 工具集的主要开发人员)提供的示例 \xe2\x80\x93 的形式说明:
\n马尔普:Markdown.md
\n---\ntheme: custom-theme\n---\n\n# Hello, world!\nRun Code Online (Sandbox Code Playgroud)\n---\ntheme: custom-theme\n---\n\n# Hello, world!\nRun Code Online (Sandbox Code Playgroud)\n马尔普-cli:
\nmarp --engine ./engine.js --bespoke.progress --watch --theme-set custom-theme.css -- mymarkdo\nRun Code Online (Sandbox Code Playgroud)\n另请参阅:\n https://github.com/marp-team/marp-cli/issues/266
\n