Skip to content

fix(bear): preserve Unicode tags - #565

Open
markoub wants to merge 1 commit into
obsidianmd:masterfrom
markoub:markoub/bear-cjk-tags
Open

fix(bear): preserve Unicode tags#565
markoub wants to merge 1 commit into
obsidianmd:masterfrom
markoub:markoub/bear-cjk-tags

Conversation

@markoub

@markoub markoub commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve Unicode letters and marks when Bear simple tags are normalized
  • extract CJK nested tags such as #标签/子标签 into frontmatter instead of collapsing them to _
  • move Bear tag normalization into a small helper with focused tests

Fixes #515

Validation

  • pnpm install --frozen-lockfile
  • pnpm exec tsx --test tests/bear/tags.test.ts
  • pnpm run test
  • pnpm run build
  • pnpm exec eslint src/formats/bear-bear2bk.ts src/formats/bear-tags.ts tests/bear/tags.test.ts
  • git diff --check

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.

Import from Bear (.bear2bk) fails for tags in Chinese characters

1 participant