晚了一个月,但发布以供参考。
/css/reveal.css 在第 70 行有这个
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
word-wrap: break-word;
line-height: 1;
}
您可以将其更改为
-webkit-hyphens: manual;
-moz-hyphens: manual;
hyphens: manual;
word-wrap: normal;
或将更改嵌入 index.html 本身。
<style type="text/css">
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
word-wrap: normal;
-webkit-hyphens: manual;
-moz-hyphens: manual;
hyphens: manual;
}
</style>
在 Firefox 和 Chromium 中测试。不过不确定它是否可以在自定义主题中使用。
编辑:哎呀,错字了。