Align in markdown table
· One min read
Centralize tables in a markdown file
<div align="center">
| left align | center align | right align |
| :--------- | :----------: | ----------: |
| left | center | right |
</div>
<div align="center">
| left align | center align | right align |
| :--------- | :----------: | ----------: |
| left | center | right |
</div>
docusaurus.config.js
const math = require("remark-math");
const katex = require("rehype-katex");
remarkPlugins: [math],
rehypePlugins: [katex],
under stylesheets
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
crossorigin: 'anonymous',
},
],
npm install --save remark-math@3 rehype-katex@5 hast-util-is-element@1.1.0