gitbook-plugin-punctuation-converter

基于正则表达式实现全局英文标点符号转换成中文标点符号的 Gitbook 插件

Usage no npm install needed!

<script type="module">
  import gitbookPluginPunctuationConverter from 'https://cdn.skypack.dev/gitbook-plugin-punctuation-converter';
</script>

README

欢迎访问 gitbook-plugin-punctuation-converter 官网 👋

npm:version npm:download npm:prerequisite github:documentation github:maintenance npm:license github:snodreams1006 website:snodreams1006.tech 微信公众号:雪之梦技术驿站-brightgreen.svg

基于正则表达式实现全局英文标点符号转换成中文标点符号的 Gitbook 插件

🏠 主页

屏幕截图

punctuation-converter-use-preview.png

用法

步骤#1 - 更新 book.json 文件

在您的 gitbookbook.json 文件中,将 punctuation-converter 添加到 plugins 列表中.

这是最简单的示例:

{
    "plugins": ["punctuation-converter"]
}

步骤#2 - 运行 gitbook 命令

  1. 运行 gitbook install .它将自动为您的 gitbook 安装 punctuation-converter 插件.

该步骤仅需要允许一次即可.

gitbook install

或者您可以运行 npm install gitbook-plugin-punctuation-converter 命令本地安装 gitbook-plugin-punctuation-converter 插件.

npm install gitbook-plugin-punctuation-converter
  1. 像往常一样构建您的书( gitbook build )或服务( gitbook serve ).
gitbook serve

示例

  • 官方文档配置文件

https://github.com/snowdreams1006/gitbook-plugin-punctuation-converter/blob/master/docs/book.json

{
    "plugins": ["punctuation-converter"]
}
  • 官方示例配置文件

https://github.com/snowdreams1006/gitbook-plugin-punctuation-converter/blob/master/example/book.json

{
    "plugins": ["punctuation-converter"]
}
  • 示例book.json文件
{
    "plugins": ["punctuation-converter"]
}

注意 :如果您的书还没有创建,以上代码段可以用作完整的 book.json 文件.

作者

👤 snowdreams1006

贡献

欢迎贡献,问题和功能要求!随时检查问题页面

支持

如果这个项目对您有帮助,请给个星星

版权

版权所有©2019 snowdreams1006

该项目是MIT许可的。