Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding Markdown/Djot in a surrounding inline context #116

Open
Omikhleia opened this issue Jun 5, 2024 · 2 comments
Open

Embedding Markdown/Djot in a surrounding inline context #116

Omikhleia opened this issue Jun 5, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Omikhleia
Copy link
Owner

Omikhleia commented Jun 5, 2024

Thoughts from sile-typesetter/sile#1866 (comment)

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
Copy link
Owner Author

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.

@Omikhleia Omikhleia added the enhancement New feature or request label Jun 5, 2024
@Omikhleia
Copy link
Owner Author

... the underlying parser/inputter would likely need to restrict the possibilities to inline elements only.

It might actually need further restrictions, such as not allowing footnote calls, indirect images and links, as those are outside what's resolvable on an inline-only snippet.

@Omikhleia Omikhleia added this to the x.y.0 milestone Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant