Plugin typescript: @rollup/plugin-typescript TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<Node<Data>>): Node<Data>', gave the following error. Property 'type' is missing in type 'ScriptNode' but required in type 'Node<Data>'. Overload 2 of 2, '(...items: (Node<Data> | ConcatArray<Node<Data>>)): Node<Data>', gave the following error. Type 'ScriptNode' is not assignable to type 'Node<Data>'.
the dev site will still fire up, but I don't know if suppressing/fixings these warnings is something we should do, there are a bunch of different warnings
Type 'Node<Data>' is not comparable to type 'ScriptNode'.
definitely recursively parsing myst inside blocks is a bit of a larger thing to tackle. there's actually an issue open for it: irydium/irydium#199 -- it might be made easier by switching to MySTJS (although that's also a bit of a can of worms): irydium/irydium#254
Hey there, I did figure out what I needed to do, but I’m kind of hampered right now because I’ve had something of a tech disaster this trip (my MacBook keyboard is hopelessly broken because it’s one of the butterfly ones, and my right half of my moon lander has become unresponsive). I have two ideas for how to do the css fix, and I guess it’s just a matter of if you want the changes to be in the parseMd.ts file (i.e. appending a <style> block to the body of any code cell where type === svelte) or if the style append should be passed in the object that returns frontMatter, scripts, and then appended to the code attribute.
I was leaning towards the first one, since I’m assuming style blocks will only apply with top level svelte or svelte component blocks
I’m flying back hopefully in an hour (flight got delayed)
Hmm, yeah, I was thinking that the styles would be applied globally in the root component (at least for a first pass), kind of like what we're doing with bootstrap. Now that I think of it. You'll actually need to use a special svelte syntax to make this happen, fortunately it's not too bad: https://natclark.com/tutorials/svelte-global-styles/