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

Info boxes in markdown #78

Open
K4LCIFER opened this issue Oct 21, 2024 · 4 comments
Open

Info boxes in markdown #78

K4LCIFER opened this issue Oct 21, 2024 · 4 comments
Labels

Comments

@K4LCIFER
Copy link

K4LCIFER commented Oct 21, 2024

Being able to create unique blocks for warnings, or notes, or tips etc. (like MyST Admonitions) is extremely important for Wikis that provide guides rather than encyclopedic knowledge.

@K4LCIFER
Copy link
Author

Lemmy allows the user to create collapsible "spoilers" with the following syntax:

::: spoiler <spoiler title>
hidden text
:::

Perhaps Ibis "Admonitions" could use the same format? Something like

::: note <note title>
note text
:::

Though there might need to be the ability to add other arguments like what MyST allows.

@Nutomic Nutomic changed the title Ability to create features similar to MyST Admonitions Markdown spoilers Oct 23, 2024
@Nutomic
Copy link
Owner

Nutomic commented Oct 23, 2024

So just spoiler tags, thats easy to add.

@K4LCIFER
Copy link
Author

So just spoiler tags, thats easy to add.

Err, no. I was simply musing about the possibility of the syntax. This is a bit more of a complex issue — I am not referring to simple spoilers. Please read this. This issue is requesting blocks of the following sorts of types:
image
For example from MyST:
image
image
image
image
etc.

They could also have the option to be dropdowns, but, for a wiki, that's more of a secondary necessity.

@Nutomic Nutomic changed the title Markdown spoilers Info boxes in markdown Oct 25, 2024
@Nutomic Nutomic reopened this Oct 25, 2024
@Nutomic
Copy link
Owner

Nutomic commented Dec 18, 2024

Related: markdown-it-rust/markdown-it-plugins.rs#22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants