Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

CSV Codeblock

elrindirelrindir5k downloads

Render code blocks with CSV format.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

This is a plugin for Obsidian (https://obsidian.md). This plugin renders codeblocks with csv format as tables.

Usage

Just put the csv identifyer in a codeblock:


```csv
Pos, Date, Name, Price
1, 2023-09-28, Spices, 150$
2, 2023-02-29, Shovel, 1.25$
```

A preview of the rendered table

Stolen Code

I stole the code from https://docs.obsidian.md/Plugins/Editor/Markdown+post+processing#Post-process+Markdown+code+blocks

import { Plugin } from "obsidian";

export default class ExamplePlugin extends Plugin {
  async onload() {
    this.registerMarkdownCodeBlockProcessor("csv", (source, el, ctx) => {
      const rows = source.split("\n").filter((row) => row.length > 0);

      const table = el.createEl("table");
      const body = table.createEl("tbody");

      for (let i = 0; i < rows.length; i++) {
        const cols = rows[i].split(",");

        const row = body.createEl("tr");

        for (let j = 0; j < cols.length; j++) {
          row.createEl("td", { text: cols[j] });
        }
      }
    });
  }
}

Changelog

v1.1 Added TSV Support

on Jul 18, 2024

Now supports tsv in codeblocks. Thanks mklepaczewski for the request.

v1.0 Initial Release

on Sep 28, 2023

69%
HealthFair
ReviewSatisfactory
About
Render csv and tsv codeblocks as tables inside your notes. Parse comma- or tab-separated rows into HTML table cells for clear, inline table display.
CSVTables
Details
Current version
1.1.0
Last updated
2 years ago
Created
3 years ago
Updates
2 releases
Downloads
5k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
elrindirelrindir
github.com/elrindir/
GitHubelrindir
  1. Community
  2. Plugins
  3. CSV
  4. CSV Codeblock

Related plugins

Advanced Tables

Improved table navigation, formatting, and manipulation.

CSV Table

Render CSV data as a table within your notes.

Table to CSV Exporter

Export tables from a pane in reading mode into CSV files.

Financial Doc

Financial documentation and tracking using CSV format and Chart.js.

CSV Editor

Edit CSV files.

CSV Lite

Just open and edit a CSV file in workspace view, no more. Keep it simple.

Datacore

An even faster reactive query engine for the data obsessed.

Super Simple Time Tracker

Multi-purpose time trackers for your notes.

Charts

Easily create interactive charts in your notes.

Sheet Plus

Create Excel-like spreadsheets and easily embed them in Markdown.