(
expression: string,
options: SettingsOptions,
)
| 129 | * This is used for advanced use cases (like rendering to custom output). |
| 130 | */ |
| 131 | const renderToHTMLTree = function( |
| 132 | expression: string, |
| 133 | options: SettingsOptions, |
| 134 | ): DomSpan { |
| 135 | const settings = new Settings(options); |
| 136 | try { |
| 137 | const tree = parseTree(expression, settings); |
| 138 | return buildHTMLTree(tree, expression, settings); |
| 139 | } catch (error) { |
| 140 | return renderError(error, expression, settings); |
| 141 | } |
| 142 | }; |
| 143 | |
| 144 | const version = __VERSION__; |
| 145 |
nothing calls this directly
no test coverage detected
searching dependent graphs…