Skip to content

opencode-md-table-formatter
Concealment Mode Alignment

Automatic Markdown table formatting for OpenCode AI coding assistant, optimized for concealment mode. Ensures tables align perfectly when Markdown symbols are hidden.

Core Features

Optimized for OpenCode concealment mode, automatically formats AI-generated Markdown tables

Concealment Mode Alignment

Optimized for OpenCode concealment mode, correctly calculates display width to ensure tables align perfectly when Markdown symbols are hidden

Auto-Format After AI Generation

Automatically triggered via experimental.text.complete hook, no manual operation required after AI generates text

Code Block Protection

Protects Markdown symbols inside inline code blocks from incorrect stripping, ensuring syntax remains intact

Three Alignment Options

Supports left alignment (:---), center alignment (:---:), and right alignment (---:) formats

Nested Markdown Handling

Uses multi-pass regex algorithm to handle nested Markdown syntax like bold, italic, and strikethrough

Edge Case Compatibility

Correctly handles Emojis, Unicode characters, empty cells, and long content

Silent Operation

No console log output, errors don't interrupt workflow, formatting completes silently

Validation Feedback

Provides friendly error comment hints for invalid tables to help users quickly identify issues