Skip to content

Conversation

@borkdude
Copy link
Contributor

No description provided.

@borkdude borkdude assigned borkdude and zampino and unassigned borkdude Nov 28, 2025
@borkdude
Copy link
Contributor Author

@zampino I accidentally overchecked if the ctx was a full document, but also including the option keys which are included in the empty doc. Does this look better to you?

@borkdude borkdude mentioned this pull request Nov 28, 2025
:nextjournal.markdown.impl/root :doc})

(def essential-doc-keys (-> (set (keys empty-doc))
(disj :text-tokenizers :text->id+emoji-fn)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm lost in all our threads :-) Remind me why we cannot move the non-essential keys from the empty doc to some default options?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if we don't want to move them now, fine for me like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is just there to merge in the default empty doc when it's not provided. So we have to check whether the user provided it or not.

borkdude added a commit that referenced this pull request Dec 1, 2025
@borkdude
Copy link
Contributor Author

borkdude commented Dec 1, 2025

I'll move this to #61

@borkdude borkdude closed this Dec 1, 2025
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.

3 participants