* Processes a string. * * @param {String} text * @param {{context: String, filename: String, syntax: String}} options * @returns {Promise } Resolves in processed string
(text, options)
| 239 | * @returns {Promise<string>} Resolves in processed string |
| 240 | */ |
| 241 | processString(text, options) { |
| 242 | return this._parseString(text, options) |
| 243 | .then(this._processTree.bind(this)) |
| 244 | .then((ast) => ast.toString()); |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Add a plugin. |
no test coverage detected