<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`renderMath`](renderMath)
## renderMath() function
Render some LaTeX math using the MathJax engine. Returns an HTMLElement. Requires calling `finishRenderMath` when rendering is all done to flush the MathJax stylesheet.
**Signature:**
```typescript
export function renderMath(source: string, display: boolean): HTMLElement;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>source</code> | <code>string</code> | |
| <code>display</code> | <code>boolean</code> | |
**Returns:**
`HTMLElement`