-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: embeds! #878
feat: embeds! #878
Conversation
@kellyjosephprice i dinked around a lot with types and tests here, which looks like it caused some conflicts 😂 i'll muddle through them but will defer to whatever patterns you're using |
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.
LGTM. The only one that really concerns me is the error.
processor/transform/embeds.ts
Outdated
return (tree: any) => { | ||
visit(tree, 'link', (node, _, parent) => { | ||
try { | ||
if (parent.children.length > 1 || node.title !== '@embed') return; |
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.
Perhaps we should check if the parent is a paragraph, and completely replace it?
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.
yeah i should still be checking if the parent is a paragraph, i think i uh optimized that out at one point, heh. but i'm basically just reforming the node and replacing the parent with it--should i be splicing it in and out or something instead?
I think I fixed the syntax highlighter dynamic imports on the |
@kellyjosephprice the we can add a couple of todos to fix these guys, it's the last "convert component" ticket and i'd like to get crackin' on the editor-side component(s), whatchoo say? |
Yea, it seems like there's something weird happening with the compilation step and the dynamic import? Skip it! |
YOLO |
This PR was released!🚀 Changes included in v6.75.0-beta.34 |
🧰 Changes
embeds!!!
🧬 QA & Testing
still need tomake updateSnapshot