1. 首页
  2. 数据库
  3. 其它
  4. pandoc filter node:适用于Node.js的Pandoc过滤 源码

pandoc filter node:适用于Node.js的Pandoc过滤 源码

上传者: 2021-04-08 20:42:17上传 ZIP文件 44.73KB 热度 35次
关于 Python Node.js / TypeScript端口,用于使用进行过滤 安装 npm install -g pandoc-filter 例子 #!/usr/bin/env node // Pandoc filter to convert all text to uppercase var pandoc = require ( "pandoc-filter" ) ; var Str = pandoc . Str ; function action ( { t : type , c : value } , format , meta ) { if ( type === "Str" ) return Str ( value . toUpperCase ( ) ) ; } pandoc . stdio ( action ) ; 使用本机承诺进行异步 #!/usr/bin/env n
下载地址
用户评论