Closed nobkd closed 11 months ago
Oh. Just because I noticed it, remark-mdc
has paragraphs not stripped by default.
/cc @Atinux @farnabaz - Should we mention it in the spec, or should we introduce a syntax to toggle this for each block? Having the config globally might not be the most intuitive way to me.
I have been talking to Ahad about this and I believe we should unwrap by default if the content inside the component contains only one parent.
This gives the possibility to leverage only <slot>
for components to be compatible with other data sources and avoid the usage of custom components such as <MDCSlot>
(which is not possible when using markdown-it
)
We also discussed about the ability to unwrap directly inside at the slot level:
::my-component
#default{unwrap="p"}
My content unwrapped
::
Moved this changes to a different branch and the PR therefore autoclosed.
Description
This PR introduces an option to strip / not strip paragraphs from MDC block slots.