README file from
Githubobsidian_table_formatter
An Obsidian plugin for formatting Markdown tables on save.
Features
- Formats Markdown tables whenever a Markdown file is saved.
- Supports configurable table cell padding:
- Fixed number of spaces (
0or more) - Blank (auto mode: single-space minimal formatting)
- Fixed number of spaces (
- Supports configurable number of
-characters in the delimiter row.
Settings
Open: Settings -> Community plugins -> Table Formatter
Padding spaces- Blank:
| cell |style (single-space padding) - Integer (
>= 0): exactly that many spaces around each cell
- Blank:
Table border dash count- Blank: auto (based on content width, minimum
3) - Integer (
>= 1): fixed number of-in delimiter cells (no:)
- Blank: auto (based on content width, minimum
Development
npm install
npm run dev
Run lint:
npm run lint
Auto-fix lint issues:
npm run lint:fix
Build production bundle:
npm run build
Note: npm run build runs lint first via esbuild.config.mjs.
Community Plugin Release
- Bump version in
manifest.jsonandversions.json. - Commit and push to GitHub.
- Create a GitHub Release with tag exactly matching
manifest.jsonversion. - Attach release assets:
main.js,manifest.json,styles.css(optional),versions.json(recommended). - Submit the repository URL from Obsidian Community Plugins.
Notes:
manifest.jsonin the default branch must be up to date before submission.- Plugin
idmust be unique and must not containobsidian.