Open eight04 opened 2 years ago
Currently there isn't, and I'm not sure what a good API or syntax for this looks like. Currently markdown semantics are very important, although these semantics will be tweaked in 1.0 to make things like this simpler. Will revisit this issue when I have had time to think about what a good solution might look like.
@pngwn Check MDC inline components https://content.nuxtjs.org/guide/writing/mdc#inline-components
@pngwn Check MDC inline components https://content.nuxtjs.org/guide/writing/mdc#inline-components
It doesn't solve this issue. We are discussing how to make the compiler group multiple components into a single paragraph.
Having inline components would be great. In MD you simply mix text and a link, in the resulting HTML the link would be in a different paragraph than the text which is very weird to read.
Currently, mdsvex compiles
into
If the component looks like an inline element, it adds a paragraph:
->
Also:
->
Is there a setting telling mdsvex that some components/HTML tags should be treated like inline elements? I lost all paragraphs after replacing images with svelte components.