making sure that mark file signatures can be processed - #8
Closed
Tboules wants to merge 4 commits into
Closed
Conversation
Owner
|
Please send the test cases and tests as a PR. Or, upload to a fork on Github. How do you generate a mark file? |
Author
Owner
philips-clanker
added a commit
that referenced
this pull request
Jul 27, 2026
Supernote digest exports use a "markSN_FILE_VER_" signature instead of "noteSN_FILE_VER_". Accept both so SupernoteX can parse .mark files exported from digest backups. Rebased from #8 (Tboules): carries forward the signature-parsing fix and the digest_test.mark fixture/test, dropped the incidental formatting, tsconfig, and dependency-version churn that had gone stale against current main.
philips
added a commit
that referenced
this pull request
Jul 27, 2026
Support .mark file signatures (rebase of #8)
Owner
|
merged #30 with this feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Hello, I want to use this plugin to create a new obsidian workflow where I automatically generate digest notes based on an exported back-up of the Digests.
The backup file is a zip of a bunch of files, but the handwritten section of the digest is saved as a .mark file.
I used this file and updated your test to process it. I can share that code with you if you'd like as well.
I added the test at the bottom of this to your main.test file and ran it with one of the mark files generated in the back-up. It worked just fine. I can't upload my mark file for some reason as it's not an accepted format for github. But anyways. This simple update would allow me to use the supernote-typescript library which would be very helpful!
Thank you!
describe('digest_image', () => { test( 'convert mark file into a png image', async () => { let sn = new SupernoteX(await readFileToUint8Array('digest_test.mark')); let images = await toImage(sn); expect(images).not.toBeUndefined(); for await (const [index, image] of images.entries()) { await imagejs.writeSync(tests/output/digest_image.mark-${index}.png, image, ); } }, { timeout: 30000 }, ); });