npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

markdown-it-tableau

v0.1.0

Published

A markdown-it plugin that renders Tableau (ts-tableau) fenced code blocks as HTML tables.

Readme

markdown-it-tableau

A markdown-it plugin that renders ```tableau fenced code blocks (using the ts-tableau library) as HTML tables. That covers VitePress, Eleventy, Marp, and anything else built on markdown-it.

Install

npm install markdown-it-tableau

Usage

import MarkdownIt from "markdown-it"
import markdownItTableau from "markdown-it-tableau"

const md = new MarkdownIt().use(markdownItTableau)

console.log(md.render(markdown))

Load ts-tableau/tableau.css on the page for the tables' default styling.

The table markup inside the fence (data, then an optional === and a layout section) is documented in the Tableau guide. Anything after tableau on the info line is ignored.

Cell contents are rendered as Markdown by the same markdown-it instance as the rest of the document, so every plugin you've registered, and options such as html, apply inside cells too. Single-line cells are rendered inline. Multi-line cells, written with col N {{ ... }} blocks, are rendered as block Markdown (paragraphs, lists).

A table that fails to parse doesn't break the document: its fence is replaced with a red error box that gives the message and the fence's line number.

VitePress

// .vitepress/config.js
import markdownItTableau from "markdown-it-tableau"

export default {
  markdown: {
    config: (md) => md.use(markdownItTableau),
  },
}
// .vitepress/theme/index.js
import DefaultTheme from "vitepress/theme"
import "ts-tableau/tableau.css"

export default DefaultTheme

Choosing the ts-tableau engine

By default the plugin renders with the ts-tableau package it depends on. To render with a different or local build of ts-tableau instead, pass its tableau and generate functions (either one alone is fine; the other falls back to the default):

import { tableau, generate } from "../ts-tableau/dist/index.js"

md.use(markdownItTableau, { tableau, generate })

Security

Raw HTML written inside a cell follows your markdown-it html option: escaped by default, passed through with html: true. The table markup that Tableau itself generates is always emitted. If you render untrusted Markdown with html: true, sanitize the output, the same as you would for the rest of the document.

Related projects

License

ISC