# markmap-autoloader



Load markmaps automatically in HTML.
## Usage
HTML:
```html
```
Note that `
```
To use specific version (here: `0.14.3`) of `mark-autoloader`:
```html
```
Load manually:
```html
```
Disable built-in plugins:
```html
```
## API
### Options
If `window.markmap.autoLoader` is defined before this package is loaded, it will be regarded as autoLoader options.
- `autoLoader.manual` _boolean_ default as `false`
Whether to render markmaps manually. If false, all elements matching `.markmap` will be rendered once this package loads or DOMContentLoaded is emitted, whichever later.
- `autoLoader.transformPlugins` _ITransformPlugin[]_
Override built-in plugins if provided. Set to `[]` to disable all built-in plugins for auto-loader.
- `autoLoader.onReady` _function_
Callback when markmap-lib/markmap-view and their dependencies are loaded. We can tweak global options in this callback.
### markmap.autoLoader.renderAll()
Render all elements matching `.markmap`.
### markmap.autoLoader.renderAllUnder(el)
Render all elements matching `.markmap` under container `el`.
### markmap.autoLoader.render(el)
Render markmap in `el`, which is supposed to have the class name `markmap`.