Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add field id_base62 to Highlight #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bcdax110
Copy link

@bcdax110 bcdax110 commented Mar 1, 2024

Added an field id_base62 to Highlight to solve the problem of the original id not being suitable as an obsidian block reference id (see: #68)
This is obtained by doing the following with the id field:

  • via UTF-8 decoding (currently the id looks ASII-enough, but this might be slightly better for compatibility with future APi changes)
  • Base62 encoding via character set 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.

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