remark-mdc
remark-mdc copied to clipboard
Scoped slots
Is your feature request related to a problem? Please describe.
How to handle scoped slots with MDC syntax ? And how to pass slot props to child components ?
Describe the solution you'd like to see
From this template :
<!-- <MyComponent> template -->
<div>
<slot :text="greetingMessage" :count="1"></slot>
</div>
To this :
::my-component
#default{text count}
This is a {{ text }} and a {{ count }}
This is an inline :child-component{text=":text" count=":count"}
::
:thinking: I'm not convinced.
We should take care about the v-bind
shorthand :
with the frontmatter. doc
What do you think about ?