Skip to content

Release 0.3.1#18

Merged
martin-papy merged 5 commits into
mainfrom
develop
Jun 5, 2026
Merged

Release 0.3.1#18
martin-papy merged 5 commits into
mainfrom
develop

Conversation

@martin-papy

Copy link
Copy Markdown
Owner

Fixes the Obsidian table paste crash and the glued-prose stray row (#16).

martin-papy and others added 5 commits June 5, 2026 07:29
Pasting an Obsidian table followed by a paragraph threw
"TypeError: Cannot read properties of null" from ProseMirror's slice
fitter. Foundry treats any table with a <thead> (every GFM table from
marked) as an isolating "complex" table; fitting an open slice of
[isolating table, paragraph] past the isolating boundary dereferences
null.

insertHtml now tries the open-slice replaceSelection first (preserving
inline-merge behavior) and, only on a fitter crash, falls back to
parsing a full document and inserting fully-closed content via
replaceWith. Building the transform does not mutate state, so the
try/catch is safe.

Adds tests/insert.test.js (first unit test for insert.js) with a
happy-path and an issue #16 regression test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
GFM and marked absorb a pipe-less line directly after table rows as a
trailing single-cell row, so a note like "*Digested from ...*" placed
right under a table became a stray table cell. Obsidian and Typora end
the table at that line instead.

Add isolateTables() to the Obsidian layer: when a table's last row is
immediately followed by a non-blank, pipe-less line, insert a blank line
so it parses as its own block. Wired into convert() after stripWikiLinks
(so wikilink pipes are already gone) and gated by the existing obsidian
option.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix: Obsidian table paste crash and glued-prose stray row (#16)
@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@martin-papy, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 55 minutes and 53 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 912219b3-91c6-49b9-bd95-0b36e7b140f9

📥 Commits

Reviewing files that changed from the base of the PR and between 55fff50 and 2525675.

⛔ Files ignored due to path filters (4)
  • CHANGELOG.md is excluded by !**/*.md and included by **/*
  • tests/convert.test.js is excluded by !**/tests/** and included by **/*
  • tests/insert.test.js is excluded by !**/tests/** and included by **/*
  • tests/obsidian.test.js is excluded by !**/tests/** and included by **/*
📒 Files selected for processing (3)
  • scripts/convert.js
  • scripts/insert.js
  • scripts/obsidian.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@martin-papy martin-papy merged commit 10d3354 into main Jun 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant