YAML Table

by dainakai
5
4
3
2
1
Score: 51/100

Description

The YAML Table plugin lets users convert YAML code blocks into clean, responsive HTML tables directly within notes. By using a custom language identifier (default: yaml-table), it enables real-time rendering of YAML content such as key-value pairs, lists, and nested structures. This makes data-heavy notes far easier to read and visually parse. Captions can also be added inline, and the rendered tables support horizontal scrolling for overflow content. The plugin works seamlessly in Reading View and Live Preview, and users can click the rendered table to edit the underlying YAML. It's a handy solution for turning structured data into legible, styled tables without leaving the note environment.

Reviews

No reviews yet.

Stats

7
stars
1,355
downloads
2
forks
340
days
339
days
339
days
8
total PRs
0
open PRs
0
closed PRs
8
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

a year ago

Changelog

What's Changed

Full Changelog: https://github.com/dainakai/obsidian-yaml-table/compare/1.1.3...1.1.4

README file from

Github

YAML Table for Obsidian

An Obsidian plugin that renders YAML code blocks as HTML tables for better visualization.

Features

  • Automatically transforms YAML code blocks with the language identifier (default: yaml-table) into HTML tables
  • Real-time preview: tables update instantly as you edit the YAML code
  • Supports various YAML structures:
    • Simple key-value pairs
    • Lists (both simple values and object lists)
    • Nested objects
  • Automatically adds horizontal scrolling when tables exceed the note width

Usage

  1. Create a code block in your Obsidian note like this:
```yaml-table
title: Project Plan
tasks:
  - name: Task 1
    due: 2025-05-05
  - name: Task 2
    due: 2025-05-07
```

To add a caption to your table, specify it after a colon in the language identifier line:

```yaml-table: Table 1. Project Plan Details
title: Project Plan
tasks:
  - name: Task 1
    due: 2025-05-05
  - name: Task 2
    due: 2025-05-07
```
  1. In Reading View or Live Preview, this code block will automatically be displayed as an HTML table, with the caption centered above it.
  2. Click on the table to edit the original YAML code.

Installation

From Community Plugins

  1. Open Obsidian Settings
  2. Go to "Third-party plugins" and browse Community Plugins
  3. Search for "YAML Table"
  4. Install and enable the plugin

Manual Installation

  1. Download the latest release main.js styles.css and manifest.json from the releases
  2. Put them to your Obsidian vault's .obsidian/plugins/yaml-table directory
  3. Restart Obsidian and enable the plugin in settings

Settings

The plugin settings offer the following option:

  • Code block language: Language identifier for YAML code blocks to be rendered as tables (default: yaml-table)

Examples

Basic Key-Value

title: table title
author: hogehoge
date: 2025-05-07

List of Objects with Caption

```yaml-table: Table 2. Event Schedule
schedule:
  - time: Mid-May
    action: Event A
  - time: Late May
    action: Event B
```

Nested Objects

project:
  name: YAML Table Plugin
  version: 1.1.0
  features:
    - table rendering
    - hogehoge
    - hogehoge

License

This plugin is released under the MIT License.

Development

Prerequisites

  • Node.js and npm

Setup

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Run npm run dev to start development with hot-reload
  4. Run npm run build to build the production version

Testing in Obsidian

  1. Build the plugin using npm run build
  2. Copy main.js, manifest.json, and styles.css to your Obsidian vault's plugins directory: .obsidian/plugins/yaml-table/
  3. Enable the plugin in Obsidian settings

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Completr
4 years ago by tth05
Auto-completion plugin for the obsidian editor.
Obsidian Columns
4 years ago by Trevor Nichols
Advanced Codeblock
4 years ago by Lijyze
An obsidian plugin that give additional features to code blocks.
Toggle Meta Yaml
3 years ago by hua
Numerals
3 years ago by RyanC
An obsidian plugin which turns a math code block into a full featured calculator
ProgressBar
3 years ago by Wei Zhang
Code block plugin for Obsidian generating a progress bar
Codeblock Customizer
3 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
HK Code Block
3 years ago by Heekang Park
Obsidian plugin developed by Heekang Park; Make code block looking good on reading view
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
MLIR Syntax Highlight
3 years ago by Lewuathe
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
Todo.txt Codeblocks
3 years ago by Benjamin Nguyen
Manage your tasks inside Obsidian codeblocks according to the Todo.txt specification.
CSV Codeblock
3 years ago by elrindir
Plugin for obsidian to render csv syntax in codeblocks.
Minitabs
2 years ago by ssjy1919
Obsidian tabs
Orgmode (CM6)
2 years ago by Benoit Bazard
Orgmode plugin for Obsidian
Dynamic Text Concealer
2 years ago by Matt Cole Anderson
Obsidian.md Plugin to conceal or replace user configured text patterns in Live Preview and Read Mode.
Livecodes Playground
2 years ago by @gapmiss
Open-source client-side code editor plugin for Obsidian.md - powered by LiveCodes.io
Edit mode switch
2 years ago by Mara-Li
Add a button in file header to switch between LP & Source while editing
ABC Music Notation
5 years ago by Til Blechschmidt
Plugin which renders music notations from code blocks
Embedded Code Title
5 years ago by tadashi-aikawa
It is an Obsidian plugin which can embeds title to code blocks.
Linter
5 years ago by Victor Tao
An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
Mode manager
a year ago by dk949
Better management of reading/editing modes in obsidian
Collapsible Code Blocks
a year ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
Replace Pencil
10 months ago by penyt
🐧 An obsidian plugin that can easily replace the custom variable in the code block.
DevOps Companion
10 months ago by Jobelin Kom
Obsidian DevOps Companion is a developer-oriented plugin that brings DevOps context awareness directly inside your Obsidian vault.
Code Blocks commands
8 months ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
Custom Theme Studio
7 months ago by @gapmiss
An Obsidian.md plugin to create and tweak custom themes with live CSS editing, element styling, and instant previews. All without leaving Obsidian.
Adapt to Current View
7 months ago by greetclammy
Obsidian plugin to set different accent colors for Reading view, Live Preview and Source view.
Better Link Clicker
4 months ago by Eniverz
An Obsidian plugin that modifies the default link click event.
Frontmatter to HTML Attributes
2 months ago by Tarek Saier
Makes YAML frontmatter available as data-* attributes in HTML, enabling metadata based CSS styling.
Negative Heading
2 months ago by Ashan Devine
Render Discord-style "-#" lines as compact headings in reading view and the editor.