bradlc / mdx-annotations Goto Github PK
View Code? Open in Web Editor NEWMarkdoc-style annotations for MDX
License: MIT License
Markdoc-style annotations for MDX
License: MIT License
Sorry that this is specific to the Protocol template, however it's the only use case I have for this issue.
Essentially what's happening is that with a fresh download of the Protocol template, the specific deps listed in the lockfile work perfectly. However, if the lockfile is rebuilt (or you switch to a different package manager), there's an issue with mdx-annotations where it can successfully identify annotations and apply the annotation
prop, but it's can't replace them with actual properties later on.
I went into a messy deep dive on Twitter. Seeing as it's dependency version based, I'm guessing it's based on an upgrade to an underlying dependency not directly listed. The diff o the thread might help. In terms of actually fixing it, I think the answer might lie in the recma
transformer. Happy to do more digging if it helps. I'd be curious to see what the answer is!
โ๏ธ
Hi,
I'm experiencing some issues with mdx-annotation in a Vite + Vue.js project.
Sandbox : https://stackblitz.com/edit/vitejs-vite-syte2b
<h1 annotation="{ id: 'foo' }">Foo</h1>
Expected result:
<h1 id="foo">Foo</h1>
Am I missing something?
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.