0.0.1 • Published 2 years ago

gitbook-plugin-pre-html-auto v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

添加样式模块

block pre

添加 html 标签以及样式。

md 文件中这样加

{% pre "font-size: 2em; font-weight: 700;", name="div" %}
test
{% endpre %}

会被编译成:

`<dev style='font-size: 2em; font-weight: 700;'>test</dev>`

其他配置

"pluginsConfig": {
    "pre-html": {
      "hidePoweredBy": true,  // 删除页面中的 power by gitbook
      "file-link": true // 将首页链接后加 index.html ./ => ./index.html
    }
	}
0.0.1

2 years ago