-
Couldn't load subscription status.
- Fork 27
feat: org-cite support #33
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
Conversation
ccb18a8 to
9bafef6
Compare
Codecov Report
@@ Coverage Diff @@
## master #33 +/- ##
==========================================
- Coverage 96.07% 95.72% -0.35%
==========================================
Files 15 15
Lines 1657 1686 +29
Branches 554 539 -15
==========================================
+ Hits 1592 1614 +22
- Misses 64 71 +7
Partials 1 1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Ok, so the status is: everything is parsed except for prefixes and suffixes. The reason is that prefixes and suffixes are “rich” (= [cite:prefix;@hello]
type: "citation"
prefix:
- type: "text"
value: "prefix"
suffix: null
children:
- type: "citation-reference"
key: "hello"however, this structure is not unified-friendly. This is because default unified traversal utils only traverse A better structure is to push prefix and suffix as children: [cite:common prefix;prefix @hello suffix;common suffix]
type: "citation"
children:
- type: "citation-prefix"
children:
- type: "text"
value: "common prefix"
- type: "citation-reference"
key: "hello"
children:
- type: "citation-prefix"
children:
- type: "text"
value: "prefix "
- type: "citation-key"
value: "hello"
- type: "citation-suffix"
children:
- type: "text"
value: " suffix"
- type: "citation-suffix"
children:
- type: "text"
value: "common prefix"but this requires a somewhat different parsing approach |
🦋 Changeset detectedLatest commit: 67420e7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
624d802 to
b3a0f36
Compare
b3a0f36 to
9944274
Compare
9944274 to
67420e7
Compare
I have started working on org-cite support before the war began. I don't remember where I left but here are my stashed changes