{"_id":"markdown-it-ast","_rev":"2782371","name":"markdown-it-ast","description":"Generate AST from tokens parsed from markdown-it.","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"andy0130tw","email":"andy0130tw@yahoo.com.tw"}],"time":{"modified":"2022-06-08T09:41:38.000Z","created":"2016-07-01T18:26:43.886Z","0.0.1":"2016-07-01T18:26:43.886Z"},"users":{},"author":{"name":"Andy Pan"},"repository":{"type":"git","url":"git+https://github.com/andy0130tw/markdown-it-ast.git"},"versions":{"0.0.1":{"name":"markdown-it-ast","version":"0.0.1","description":"Generate AST from tokens parsed from markdown-it.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/andy0130tw/markdown-it-ast.git"},"keywords":["markdown-it-plugin","markdown-it","markdown","ast"],"author":{"name":"Andy Pan"},"license":"MIT","bugs":{"url":"https://github.com/andy0130tw/markdown-it-ast/issues"},"homepage":"https://github.com/andy0130tw/markdown-it-ast#readme","gitHead":"7b60933cc2cec5328c63a464b6120de57588f4e4","_id":"markdown-it-ast@0.0.1","_shasum":"8e8473837ab3b32fd1c23653ae6d47663f977538","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"andy0130tw","email":"andy0130tw@yahoo.com.tw"},"dist":{"shasum":"8e8473837ab3b32fd1c23653ae6d47663f977538","size":2290,"noattachment":false,"key":"/markdown-it-ast/-/markdown-it-ast-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-ast/download/markdown-it-ast-0.0.1.tgz"},"maintainers":[{"name":"andy0130tw","email":"andy0130tw@yahoo.com.tw"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/markdown-it-ast-0.0.1.tgz_1467397600340_0.6112010299693793"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T13:30:54.280Z","publish_time":1467397603886,"_cnpm_publish_time":1467397603886}},"readme":"# Markdown-It AST Generator\n\nGenerate AST from tokens parsed from markdown-it to be more efficient on searching and rewriting tokens.\n\n## Usage\n\n```js\nvar markdownIt    = require('markdown-it');\nvar markdownItAST = require('markdown-it-ast');\n\nvar tokens = markdownIt.parse('#123\\n##456');\nmarkdownItAST.makeAST(tokens);\n```\n\n## Structure\n`makeAST` returns a tree. Each token pair (open, close) are stored in `openNode` and `closeNode`, respectively. `nodeType` is derived from the opening token. Descendants are stored in `children`, can be either a node on AST **or an inline node**.\n\n# License\nThis project was [licensed under MIT]((https://github.com/andy0130tw/markdown-it-ast/LICENSE).\n","_attachments":{},"homepage":"https://github.com/andy0130tw/markdown-it-ast#readme","bugs":{"url":"https://github.com/andy0130tw/markdown-it-ast/issues"},"license":"MIT"}