Markdown table formatter plugin for Opencode with concealment mode support.
Add the plugin to your .opencode/opencode.jsonc:
{
"plugin": ["@franlol/opencode-md-table-formatter@latest"],
}
| Original | Formatted |
|---|---|
|
|
|
:---), center (:---:), and right (---:) text alignment`**bold**`)Key behaviors:
**bold** inside backticks shows as literal text with proper spacingThis plugin uses Opencode's experimental.text.complete hook to format markdown tables after the AI finishes generating text. It intelligently strips markdown symbols (for width calculation) while preserving symbols inside inline code blocks, ensuring tables align correctly ONLY with Opencode's concealment mode enabled (the default setting).
The plugin uses a multi-pass regex algorithm to handle nested markdown (like **bold with code inside**) and caches width calculations for performance.
Tables not formatting?
.opencode/opencode.jsonc config|---|---|)Invalid table structure comment?
MIT © franlol
23 commits
1 commits
TypeScript
100.0%
Markdown table formatter plugin for Opencode with concealment mode support.
Add the plugin to your .opencode/opencode.jsonc:
{
"plugin": ["@franlol/opencode-md-table-formatter@latest"],
}
| Original | Formatted |
|---|---|
|
|
|
:---), center (:---:), and right (---:) text alignment`**bold**`)Key behaviors:
**bold** inside backticks shows as literal text with proper spacingThis plugin uses Opencode's experimental.text.complete hook to format markdown tables after the AI finishes generating text. It intelligently strips markdown symbols (for width calculation) while preserving symbols inside inline code blocks, ensuring tables align correctly ONLY with Opencode's concealment mode enabled (the default setting).
The plugin uses a multi-pass regex algorithm to handle nested markdown (like **bold with code inside**) and caches width calculations for performance.
Tables not formatting?
.opencode/opencode.jsonc config|---|---|)Invalid table structure comment?
MIT © franlol
23 commits
1 commits
TypeScript
100.0%