Omikhleia / markdown.sile

Native Markdown and Djot support for the SILE typesetting system
MIT License
36 stars 3 forks source link

Embedding Markdown/Djot in a surrounding inline context #116

Open Omikhleia opened 1 month ago

Omikhleia commented 1 month ago

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.

Omikhleia commented 1 month ago

And on the YAML side (e.g. a resilient master document), one could want:

  title: Some _Djot_ mark-up

And that "title" metadata is an "inline-only" thing.