## Usage Use the `.parse` method directly to return an AST: ```js var snapdragonCheerio = require('{%= name %}'); var ast = snapdragonCheerio.parse('It worked!'); console.log(ast); // Node { // type: 'string', // nodes: // [ Node { type: 'bos', val: '', index: 0 }, // Node { type: 'strong', attribs: {}, index: 1, nodes: [Object] }, // Node { type: 'eos', val: '', index: 2 } ] } ``` **Snapdragon plugin usage** Pass to [snapdragon][]'s `.use` method to use as a plugin: ```js var snapdragonCheerio = require('snapdragon-cheerio'); var Snapdragon = require('snapdragon'); var snapdragon = new Snapdragon(); snapdragon.use(snapdragonCheerio()); var ast = snapdragon.parse('It worked!'); // Node { // type: 'string', // nodes: // [ Node { type: 'bos', val: '', index: 0 }, // Node { type: 'strong', attribs: {}, index: 1, nodes: [Object] }, // Node { type: 'eos', val: '', index: 2 } ] } ``` Visit [snapdragon][] to learn how to compile the generated AST into a string.