Skip to content

Bear import fixes - #629

Merged
kepano merged 7 commits into
masterfrom
bear-import-fixes
Aug 12, 2026
Merged

Bear import fixes#629
kepano merged 7 commits into
masterfrom
bear-import-fixes

Conversation

@kepano

@kepano kepano commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator
  • Keep tags inline and add new "Move tags to a property" to place them in frontmatter.
  • Fix tags that end before the punctuation after it (like #bear, became #bear_, losing the comma), an escaped \# is text.
  • Add a empty line before tables.
  • Use <u> for underlines since ~ is not supported.
  • Bear's <!-- {"width":388} --> becomes ![[image.png|388]].
  • archive and trash are only created if they have notes

Supersedes #511

kepano added 7 commits August 12, 2026 10:04
Tags stay where Bear wrote them, with a setting to move them to a
property instead. A tag ends before the punctuation that follows it, an
escaped hash is text, a hash in code is code, and a hex colour is a
colour. A table is separated from the paragraph above it, an image's
width comment is written as a width Obsidian reads, and archive and
trash folders are only created when something lands in them.
Obsidian reads a pair of tildes as strikethrough and one as nothing, so
Bear's underline was lost.
Image sizes were rewritten inside a fence, a code span crossing a line
ending was not seen as one, an escaped tilde was read as an underline,
and a tag after a non-breaking space was extracted but never removed.
A code span now closes on a run as long as the one that opened it, and
only a bare delimiter closes a fence, so the ```js opening an example
inside a ```md block no longer ends it. One tracker answers for both
passes that needed to know where a fence was, and a tag stops at the
placeholder standing in for code.
separateTables ran before the masking and only knew about fences, so a
table example inside a code span was broken apart. Masking once at the
top of the conversion puts every pass behind it, asset links included,
and leaves one caller for the fence tracker. A fence is also no longer
recognised four spaces in, where the backticks are indented code.
@kepano
kepano merged commit bad5ddf into master Aug 12, 2026
1 check passed
@kepano kepano mentioned this pull request Aug 12, 2026
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