1.1.1. 问题

gitbook 有个模板问题:如果md文件中有连续的大括号(比如:&{{父亲 40}}),gitbook会把{{ 父亲 40 }}中的父亲 40当做一个模板变量。如果这个变量不存在,会报错 Template render error: expected variable end。详细的解释看下面:
https://wwshen.gitbooks.io/omooc2py/0MOOC/dakuohao.html
https://www.weihuayi.cn/tools/gitbook.html
https://juejin.im/post/5ce51e126fb9a07ed440d7d0#heading-22

1.1.2. 解决方式。

把连续的大括号{{替换为中间加个空格{ {,把}}替换为} }

1.1.3. mdBook 的使用:

mdbook现在对目录的支持还不太行。所以暂时不用这个了。比如下面:

results matching ""

    No results matching ""