Skip to content

Add support for super noteType #2

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

TjenWellens
Copy link

summary:

  1. added 'updated' to frontmatter yaml

  2. handle noteType super
    otherwise the note content just becomes a single-line json mess (which is standard-note's internal representation for 'super' notes)

{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Clip source: ","type":"text","version":1},...

should not change anything unless the note-type is 'super'

This probably does not parse everything possible in a 'super' node, but it parses all of my cases.
Cases I didn't handle, show up as text in the .md files #error: ....
(adding those error as a tag seemed like a nice touch)

Anyway, thank you for the script!

@minimoz
Copy link

minimoz commented Nov 20, 2024

Hey!
First thank you for this very useful PR!
While trying to run the script with your modifications over a hundred notes I've encounter the following error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 61959704 bytes) in .../standard-notes-to-markdown.php on line 261

Is the export done sequencially or all the notes at the same time?

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.

2 participants