Currently, the SIL case (Some SIL stuff \raw[type=markdown]{Some Markdown}) won't lead to a single paragraph (as the markdown/djot parsers generates a surrounding paragraph).
But likewise, we cannot have e.g. Some Djot stuff `Some Markdown stuff`{.markdown}
We need to do something different whether we are already in horizontal mode or not, and the underlying parser/inputter would likely need to restrict the possibilities to inline elements only.
Thoughts from https://github.com/sile-typesetter/sile/issues/1866#issuecomment-2151096275
Currently, the SIL case (
Some SIL stuff \raw[type=markdown]{Some Markdown}
) won't lead to a single paragraph (as the markdown/djot parsers generates a surrounding paragraph).But likewise, we cannot have e.g.
Some Djot stuff `Some Markdown stuff`{.markdown}
We need to do something different whether we are already in horizontal mode or not, and the underlying parser/inputter would likely need to restrict the possibilities to inline elements only.