Skip to content

yafyx/markdownTables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkdownTables

Renders GitHub-style markdown tables in Discord messages instead of showing raw pipe syntax.

Detected tables are rendered in place, with an optional Raw view for the original markdown.

Available on Equicord.

Screenshots

Basic table

simple

Inline formatting

inline markdown

Column alignment

alignment

Wide tables

long cell

Table and Raw Views

When the toggle is enabled, each rendered table includes a small switcher:

  • Table: the rendered view.
  • Raw: the original markdown rendered in a code block.

Raw view uses Discord's code block renderer, so syntax-highlighting plugins can style it like any other markdown code block.

Settings

  • Hide Toggle (default: true) Hides the Table/Raw switcher.

    • On (default): tables always render, no toggle visible.
    • Off: shows the switcher above every table.

    Turn this off to expose the Raw view.

Features

  • Pipe tables with or without outer pipes.
  • Left, center, and right alignment.
  • Escaped pipes inside cells.
  • Multiple tables per message.
  • Adjacent text stays in place.
  • Skips code blocks and malformed tables.
  • Edge fades on scrollable wide tables.

Development

For local testing, copy this folder to:

src/userplugins/markdownTables

For Equicord submission, copy the plugin to:

src/equicordplugins/markdownTables

The plugin folder is camelCase and the entry file is index.tsx, matching Equicord's plugin layout. Pull requests should target Equicord's dev branch.

Useful checks:

pnpm exec tsx src/equicordplugins/markdownTables/parser.test.ts
pnpm build
pnpm test

About

Render GitHub-style markdown tables inside Discord message bodies. Equicord plugin that parses pipe tables and renders them inline.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors