【文件属性】:
文件名称:metalsmith-typography:用于增强排版的 Metalsmith 插件
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-15 11:33:49
JavaScript
金属匠排版
一个 Metalsmith 插件,用于增强 HTML 中的排版——缩写、引号和破折号、介词后的不间断空格。 基于 。
安装
$ npm install metalsmith-typography
命令行使用
通过 npm 安装,然后将metalsmith-typography密钥添加到您的metalsmith.json插件中:
{
" plugins " : {
" metalsmith-typography " : {
" lang " : " en "
}
}
}
Javascript 用法
将options传递给排版插件并use方法将其传递给 Metalsmith:
var typography = require ( 'metalsmith-typography' ) ;
metalsmith . use ( typogra
【文件预览】:
metalsmith-typography-master
----.travis.yml(17B)
----package.json(887B)
----test()
--------index.js(974B)
--------fixtures()
----Readme.md(1KB)
----.gitignore(26B)
----lib()
--------index.js(1KB)
----Makefile(119B)