Table Formatter

by fangface-hub
5
4
3
2
1
Score: 35/100
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Formats Markdown tables when files are saved.

Reviews

No reviews yet.

Stats

stars
6
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

obsidian_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 (0 or more)
    • Blank (auto mode: single-space minimal formatting)
  • 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
  • Table border dash count
    • Blank: auto (based on content width, minimum 3)
    • Integer (>= 1): fixed number of - in delimiter cells (no :)

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

  1. Bump version in manifest.json and versions.json.
  2. Commit and push to GitHub.
  3. Create a GitHub Release with tag exactly matching manifest.json version.
  4. Attach release assets: main.js, manifest.json, styles.css (optional), versions.json (recommended).
  5. Submit the repository URL from Obsidian Community Plugins.

Notes:

  • manifest.json in the default branch must be up to date before submission.
  • Plugin id must be unique and must not contain obsidian.