-
Notifications
You must be signed in to change notification settings - Fork 11
Move opts to own map #61
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
base: main
Are you sure you want to change the base?
Conversation
mk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about needing more changes in parser.
| :footnotes [] | ||
| ::path [:content -1] ;; private | ||
| :text-tokenizers []}) | ||
| (def empty-doc utils/empty-doc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have the parser again? Seems to have quite a bit of code duplication and it's not really tested from what I can tell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in dev and I think no longer used?
| :text->id+emoji-fn)))) | ||
| (dissoc :opts | ||
| ::path | ||
| ::id->index)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update this as well?
|
@mk I considered doing this, but the reason I didn't proceed, was that "dissoc option from empty-doc to disable option" was a contract from the beginning. Killing that contract will be a breaking change.
|
markdown/src/nextjournal/markdown/impl.clj Lines 286 to 288 in 6c0df00
I should've checked only for essential document keys and not count the implicit option keys since those can be dissoc-ed.
We can also say: screw all of the above backward compatibility changes and we just put a big |
No description provided.