Implement MDY standard - #122
Conversation
done. will notify him. @ggodlewski |
lattln
left a comment
There was a problem hiding this comment.
Code looks good, will do QA
|
@ggodlewski We should only do this in a rich-text-mdy field and not rich-text. I think its an interesting idea to add it into the input of an eSheet, but I think this is like a snake eating itself. I think adding a rich-text-mdy type would be cool but we should differentiate it from a ordinary rich-text input. I want there to be a mdy output of esheet that is consumable by a kerebron editor independent of the original esheet. |
lattln
left a comment
There was a problem hiding this comment.
- Support existing eSheet field IDs, including hyphenated IDs such as what-is-your-email, in both typed and loaded MDY references.
q1:
value: q1
whatemail:
value:
---
q1: [q1](#q1)
q2: [email](#whatemail)
q3: (\\\\\\#what-color)
- Prevent richtext responses from being included as whole MDY documents in another rich-text field’s generated front matter.
Dirty Submission
---\nq1:\n value: q1\nwhatemail:\n value: \n---\nq1: [q1](#q1)\n\nq2: [w](#whatemail)\n\nq3: (\\\\\\#what-color)\n
- Return rich-text answers as structured data instead of an opaque Markdown string:
{
answer: {
frontmatter: {
q1: { value: 'John' },
},
body: 'Name: [John](#q1)\n',
},
}
- Reconstruct the complete MDY document only when supplying content to Kerebron.
- Define front-matter ownership and merge precedence: generated from eSheet responses, authored document data, or a documented hybrid.
- Update MDY references in rich-text content when a referenced eSheet field ID is renamed.
- Add focused tests for hyphenated IDs, MDY load/save behavior, structured response output, multiple rich-text fields, and field-ID renames.
|
Nesting richtext won't work because MDY does not support multiline text. |
Implement MDY standard from:
mieweb/kerebron#115
Sample file:
https://github.com/mieweb/templit/blob/main/samples/simple.mdy
npx nx serve app-demoName: (#q1)