3 ms·
That's true that it needs more extensibility and zero-copy sharing of data, but in your example, are you serializing to something like JSON? Why does the end us
by satvikpendem 4y ago
That's true that it needs more extensibility and zero-copy sharing of data, but in your example, are you serializing to something like JSON? Why does the end user need to specify the tags in JavaScript particularly and not something like JSON? Forgive me if I'm not understanding and you are indeed using JSON.
- segphault 4y agoMarkdoc custom tag definitions can include arbitrary AST transforms on the child nodes, as in this example: https://markdoc.dev/docs/examples#tabs https://markdoc.dev/docs/examples#tabs In order to do this, you need some API, so you can't just define the tags in JSON.
- satvikpendem 4y agoAh I see. Then yeah, that's a little rough to be doing in both JS and Rust.