Markdown Table Query · Obsidian plugin documentation
Markdown Table Query documentation

Markdown Table Query turns standard GitHub Flavored Markdown tables inside your Obsidian notes into live, queryable data sources. Write concise md-table-query code blocks or open the interactive Table query explorer modal to filter, project, sort, and summarize rows across notes without duplicating data into YAML frontmatter or external spreadsheets.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
- Open Obsidian Settings, open Community plugins, and select Browse.
- Search for Markdown Table Query and select Install.
- Select Enable to activate the plugin.
- For manual installation, copy
main.js,manifest.json, andstyles.cssfrom the latest GitHub release into<vault>/.obsidian/plugins/markdown-table-query/, then reload Obsidian and enable the plugin.
2 Getting started
Write standard GitHub Flavored Markdown tables in one or more notes inside a folder, then add a md-table-query code block or run the explorer modal from the command palette.
FROM .
WHERE Amount >= 150 AND Date >= 2026-09-01
SELECT Item, Category, Amount, Date, _file
SORT Amount DESC
LIMIT 25
- Open the command palette and run
Open table query explorerto write and preview queries against tables in the active folder. - Select
Run queryto execute the clauses and click any column header to toggle ascending or descending sort order. - Select
Insert code blockor runInsert live table query blockto embed the query directly in your active Markdown note. - Run
Refresh all live table queriesto re-evaluate every renderedmd-table-queryblock on demand.
With Pro active, expand queries across folders with FROM *, aggregate with GROUP BY and HAVING, join notes with JOIN "Directory/Team.md" ON Owner = Name, render inline charts with VIEW CHART BAR Category, Total or VIEW CHART LINE, export via Export table query as CSV (Pro) or Export table query as JSON (Pro), and manage reusable snippets with Manage saved query templates (Pro).
3 Features
Live Markdown table queries in your active folder
Place a md-table-query fenced code block in any note to query every GitHub Flavored Markdown table in the same folder. The parser skips YAML frontmatter and fenced code blocks, handles escaped pipes, and attaches built-in virtual columns (_file, _path, _folder, _heading, and _table) so you can trace every row back to its origin note. Click any column header to sort results interactively, click a source note link to jump directly to the note, and let auto-refresh update live views whenever a note changes.
Type-aware filtering, sorting, and interactive query explorer
Filter and order rows using FROM, WHERE, SELECT, SORT (or ORDER BY), and LIMIT clauses. Comparisons automatically recognize numbers (including currency symbols, thousand separators, and percentages), ISO dates (YYYY-MM-DD), booleans, and natural text order after stripping inline bold, italic, code, and wikilink markup. Combine conditions with AND, OR, =, !=, >, >=, <, <=, CONTAINS, NOT CONTAINS, STARTS WITH, ENDS WITH, IN (...), IS EMPTY, and IS NOT EMPTY. Open the Open table query explorer command to test queries interactively and insert a finished md-table-query block at your cursor.
Cross-vault aggregations, multi-table joins, CSV/JSON export, SVG charts, and saved templates (Pro)
Upgrade to Pro to query across your entire vault with FROM * or comma-separated folder paths, aggregate columns with GROUP BY, HAVING, COUNT, SUM, AVG, MIN, and MAX, and combine related tables from separate notes using INNER JOIN or LEFT JOIN. Render responsive inline SVG bar and line summary charts with VIEW CHART BAR or VIEW CHART LINE, export any filtered or aggregated result to RFC-4180 CSV or formatted JSON, and save reusable query templates directly inside your vault settings.
4 Commands
Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.
| Command | Command id |
|---|---|
| Open table query explorer | markdown-table-query:open-query-explorer |
| Insert live table query block | markdown-table-query:insert-query-block |
| Refresh all live table queries | markdown-table-query:refresh-query-blocks |
| Insert grouped summary query block (Pro) | markdown-table-query:insert-group-summary-query |
| Insert multi-table join query block (Pro) | markdown-table-query:insert-join-query |
| Export table query (Pro) | markdown-table-query:export-query-default |
| Export table query as CSV (Pro) | markdown-table-query:export-query-csv |
| Export table query as JSON (Pro) | markdown-table-query:export-query-json |
| Manage saved query templates (Pro) | markdown-table-query:open-saved-templates |
5 Settings
| Setting | Description | Default |
|---|---|---|
| Default row limit | Maximum rows returned when a query omits the LIMIT clause (10 to 2000). |
250 |
| Auto-refresh live code blocks | Automatically re-run md-table-query blocks when vault notes change. |
On |
| Show source note column | Append a clickable source note column when queries use SELECT *. |
On |
| Default export format (Pro) | Format pre-selected in the export modal (csv or json). |
CSV (RFC 4180) |
| Default export folder (Pro) | Vault folder where exported CSV and JSON files are saved. | Exports |
| Default summary chart type (Pro) | Default chart style (bar or line) when toggling chart view. |
Bar chart |
6 Pro
Core Markdown table extraction, active-folder md-table-query code blocks, the interactive query explorer modal, and type-aware WHERE, SELECT, SORT, and LIMIT clauses work free with no account. Pro adds four analysis and export workflows:
- Run cross-vault SQL-like GROUP BY aggregations (COUNT, SUM, AVG, MIN, MAX) with HAVING filters across all folders.
- Join related Markdown tables across separate notes using INNER JOIN and LEFT JOIN on matching columns.
- Export any query result to RFC-4180 CSV or formatted JSON by copying to the clipboard or saving into your vault.
- Render live inline SVG bar and line summary charts from query results and reuse saved query templates.
Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.
Run the What Pro adds command to test interactive in-memory demos of all four Pro features before sponsoring.
7 Privacy, payment and network
The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.
One payment turns on Pro in every NoteMods plugin.
GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=markdown-table-query. You need no account for the free features. Pro needs the GitHub account that sponsors.
Until you select "Sign in with GitHub" in the settings, Markdown Table Query makes no network requests. Sign in uses the GitHub device flow. Markdown Table Query sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.
After sign in, Markdown Table Query sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.
After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.
8 Questions and answers
Does Markdown Table Query modify my source Markdown tables?
No. All queries are strictly read-only against your Markdown notes. The plugin only writes files when you explicitly choose Save to vault inside the Pro CSV or JSON export modal.
How does type-aware sorting handle currency, percentages, and wikilinks?
Before comparing values in WHERE or SORT, the engine strips inline formatting (**bold**, *italic*, backticks, and [[Target|Alias]] wikilinks) and detects numeric values such as $1,250.50 or 42% as well as ISO dates (2026-11-26). Your original cell formatting remains intact in the rendered table.
Why are tables inside fenced code blocks ignored?
Example tables inside triple-backtick or triple-tilde code fences are skipped during extraction so documentation snippets never pollute your live query results.
Does Markdown Table Query work offline?
Yes. Table parsing, querying, joining, aggregation, SVG chart rendering, and CSV/JSON export run 100% locally inside Obsidian. The only optional network request is the GitHub Sponsors Pro check after you explicitly select "Sign in with GitHub" in Settings.
9 Support
Report bugs or request improvements on GitHub Issues.