(element, messages, options)
| 199 | } |
| 200 | |
| 201 | function elementToHtml(element, messages, options) { |
| 202 | if (!options) { |
| 203 | throw new Error("options not set"); |
| 204 | } |
| 205 | var handler = elementConverters[element.type]; |
| 206 | if (handler) { |
| 207 | return handler(element, messages, options); |
| 208 | } else { |
| 209 | return []; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | function convertParagraph(element, messages, options) { |
| 214 | return htmlPathForParagraph(element, messages).wrap(function() { |
no test coverage detected