You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin converts the raw <table> elements that result from basic markdown, and augments them with Bootstrap table classes for improved styling.
Setup
Install the plugin using pip:
pip install mkdocs-bootstrap-tables-plugin
Activate the plugin in mkdocs.yml:
plugins:
- search
- bootstrap-tables
Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.
Enabling this plugin will take a simple table generated by markdown:
Original Markdown
| Parameter | Type | Description |
| --------------- | ------ | ----------- |
| `foo` | string | A parameter that does something. |
| `bar` | int | A parameter that does something. |
| `baz` | URI | Required. You better use this. |
HTML before processing
This is the HTML that Markdown will produce:
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>foo</code></td><td>string</td><td></td></tr><tr><td><code></code></td><td>int</td><td>A parameter that does something.</td></tr><tr><td><code>baz</code></td><td>A parameter that does something.URI</td><td>Required. You better use this.</td></tr></tbody></table>
HTML after processing
This is the HTML after this plugin has run:
<tableclass="table"><thead><tr><thscope="col">Parameter</th><thscope="col">Type</th><thscope="col">Description</th></tr></thead><tbody><tr><td><code>foo</code></td><td>string</td><td></td></tr><tr><td><code></code></td><td>int</td><td>A parameter that does something.</td></tr><tr><td><code>baz</code></td><td>A parameter that does something.URI</td><td>Required. You better use this.</td></tr></tbody></table>