Orta Therox
Orta Therox
Oof, not sure when I'll find time to dig into this properly - this section of code is super gnarly and not an area I fully grok anymore
Unsure, but there's no HTML generated by shiki/shiki-twoslash which includes something like `parentName="` - and the code sample works fine in the playground, https://shikijs.github.io/twoslash/playground?#code/MYewdgzgLgBAhgGwQBRNCAuGBvGATOKAUy2gCcBLMAcxgF8BtAXRgF4ZmAoT0SWABzRQIAIQCeATSJwybeElToAdGSJ4ArsCIAlCtQAWUABRHB6ADQwzUAJRsAfDk4wYvaDDHTZ7a0oLElCH4ECmMAcgBaMJsGAAYmAG5nV3B3TxlFYTlrCCVqImN0sjsAHxKOROTVKHUyMCshXIgCoyLLBmtLJW6izIgmGyS6SwB6ACoxmAABKDF+IhwAWTh+AB5yKmpLEQQQakzmezojmDGRmDAiAHcYZf4jG0HOIA It indeed must be something influenced...
It's a push, but can you try it without the typo in the JSDoc comment? ```diff const postsByYear = allPosts.reduceRight((posts, post) => { const year = post.date.split('-')[0]; const yearPosts =...
If you can figure out a way to do it, I'm open to it 👍🏻
Great writeup
This is in
Ha, well surely one of these days they'll go prod with v2 then we can say "v2 only"
It's tricky, because Twoslash is (intentionally) tied _super_ tight to the TS compiler (and its implementation details). That said not infeasible to imagine some sort of API which acts a...
Interesting, perhaps there's different constraints when running inside a module - I don't have any code which runs in ESM node, so I've not hit it. Open to PRs though...
I think you're between a rock and a hard place, shiki can't go sync and markdown-it won't support async calls