引入strapdown.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.5.2/sandstone/bootstrap.min.css">
<xmp theme="sandstone">

<!--M↓文本-->
xxx
xxx

</xmp>
</body>
<script src="http://strapdownjs.com/v/0.2/strapdown.js"></script>
</html>

主题的修改方式:打开上面的链接,strapdown.js中会有不同的主题,粘贴主题名并改为小写,复制到link标签的href(只需替换4.5.2和bootstrap.min.css中间的主题名)和xmp标签的theme即可;此例使用的主题为:sandstone

原文链接 https://zhuanlan.zhihu.com/p/37690583?native.theme=7