Commit graph

19 commits

Author SHA1 Message Date
Vesa Vänskä
0962161cb8
Merge pull request #6 from vesan/test/improve-coverage
test: expand coverage and report it in CI
2026-05-25 11:40:24 +03:00
Vesa Vänskä
0c18d9123b
test: expand coverage and report it in CI
- Add @vitest/coverage-v8, test:coverage script, vitest.config.ts
- Extract looksLikeTable to src/detect.ts so it is testable without
  pulling the obsidian runtime
- Add edge-case tests for parser, formatter, convert, and detect
  (23 -> 38 tests; line coverage 100% on every file except main.ts)
- Run coverage in CI and append the line % to the step summary
2026-05-25 11:39:06 +03:00
Vesa Vänskä
4a2f3d1d1c
Merge pull request #4 from vesan/dependabot/npm_and_yarn/npm_and_yarn-c39889ec24
chore(deps-dev): bump esbuild from 0.20.2 to 0.28.0 in the npm_and_yarn group across 1 directory
2026-05-25 10:31:44 +03:00
dependabot[bot]
cdea9d1f83
chore(deps-dev): bump esbuild
Bumps the npm_and_yarn group with 1 update in the / directory: [esbuild](https://github.com/evanw/esbuild).


Updates `esbuild` from 0.20.2 to 0.28.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.20.2...v0.28.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.28.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-25 07:31:14 +00:00
Vesa Vänskä
c28f2fa5ac
Merge pull request #3 from vesan/dependabot/npm_and_yarn/npm_and_yarn-b9edaaa523
chore(deps-dev): bump postcss from 8.5.9 to 8.5.15 in the npm_and_yarn group across 1 directory
2026-05-25 10:29:06 +03:00
dependabot[bot]
b575e2ec8a
chore(deps-dev): bump postcss
Bumps the npm_and_yarn group with 1 update in the / directory: [postcss](https://github.com/postcss/postcss).


Updates `postcss` from 8.5.9 to 8.5.15
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.9...8.5.15)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.15
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-22 07:47:50 +00:00
Vesa Vänskä
59ec9415bb
Merge pull request #2 from vesan/ci/github-actions-tests
ci: run tests and build on main pushes and PRs
2026-05-20 13:13:47 +03:00
Vesa Vänskä
ebdfadc0b7
ci: run tests and build on main pushes and PRs
Tests previously ran only locally, so a regression could land on main
or in a PR unnoticed. Add a GitHub Actions workflow running the build
(tsc type-check) and Vitest suite on every push to main and every PR.
2026-05-20 13:12:25 +03:00
Vesa Vänskä
2c00b5faf6
Merge pull request #1 from vesan/fix/multiline-and-indentation
fix: merge multiline cells and strip leftover indentation
2026-05-20 13:05:55 +03:00
Vesa Vänskä
a4370e95d1
fix: merge multiline cells and strip leftover indentation
Group physical data lines into logical rows by border lines so word-wrapped cells merge instead of producing empty rows. Expand the selection to whole lines before replacing so the converted table is inserted flush-left.
2026-05-20 13:04:08 +03:00
Vesa Vänskä
65f7894fab
fix: drop unused async on Plugin.onload
Obsidian review bot flagged that `onload` was declared async without
any await. Removing async keeps the method's return type accurate.

Comment: https://github.com/obsidianmd/obsidian-releases/pull/12327#issuecomment-4322720127
2026-04-28 14:36:37 +03:00
Vesa Vänskä
5f0cde652c
chore: Add dot to the end of manifest desciption (mandatory) 2026-04-26 19:48:51 +03:00
Vesa Vänskä
69770a0a12
chore: release 1.0.1 2026-04-26 19:40:43 +03:00
Vesa Vänskä
5d3d9a25c8
fix: gate command palette entry behind table detection
Previously the command silently no-oped when run on a non-table
selection. Use editorCheckCallback so the entry is grayed out in the
palette unless the selection contains table-like characters, matching
the existing right-click menu behavior.
2026-04-26 19:40:04 +03:00
Vesa Vänskä
748c7a533f
docs: document release process
Capture the version-bump, tag, and GitHub release flow in the README
so the steps don't have to be reconstructed from memory at each
release. The exact-match tag rule is the easiest gotcha to forget.
2026-04-26 19:34:06 +03:00
Vesa Vänskä
c2c73049bd
chore: prepare 1.0.0 release
- Add MIT LICENSE
- Bump minAppVersion to 1.4.0 (matches what was tested)
- Drop trailing period in description (Obsidian style guide)
2026-04-26 19:19:16 +03:00
Vesa Vänskä
62f5950774
docs: add README 2026-04-26 19:16:32 +03:00
Vesa Vänskä
446f321deb
docs(parser): clarify why delimiter detection is needed
Unicode │ (U+2502) and ASCII | are different bytes, so splitting
on the wrong one produces no split at all.
2026-04-26 19:16:32 +03:00
Vesa Vänskä
2503c08863
feat: Obsidian plugin to convert box-drawing tables to Markdown
Parses ASCII (+/-/|) and Unicode (┌─┬─┐│├┼┤└┴┘) table formats
from CLI tool output and converts them to properly formatted
Markdown pipe tables. Identifier-like cell values are auto-wrapped
in backticks.

Available via right-click context menu and command palette.
2026-04-26 19:16:31 +03:00