orga

2019-06-13 admin

orga是什么

什么是orga,org-mode parser

orga使用教程帮助文档

orga

Turns org-mode content into AST.

Install

npm install --save orga

Usage

const { parse } = require('orga')
const ast = parse(`* TODO remember the milk    :shopping:`)

ast is an object looks like this:

{ type: 'root',
  children:
   [ { type: 'headline',
       children: [ { type: 'text', children: [], value: 'remember the milk' } ],
       level: 1,
       keyword: 'TODO',
       priority: undefined,
       tags: [ 'shopping' ] } ],
  meta: {} }

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-67187.html

文章标题:orga

回到顶部