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

bracketed spans and fenced div extensions #589

Open
g-braeunlich opened this issue May 29, 2022 · 2 comments
Open

bracketed spans and fenced div extensions #589

g-braeunlich opened this issue May 29, 2022 · 2 comments

Comments

@g-braeunlich
Copy link

What do you think about the following extensions?

Thought naively, this should not be that difficult, as functionality could be reused from fenced codeblocks and links.
The only complication, I could think of would be nested bracketed spans / links, but I guess that [ and ] chars inside a link description are already handled.

If you like this idea, I would be willing to at least try to draft a PR.

@treeman
Copy link

treeman commented Jun 1, 2022

One reason this is better than including raw <div> tags is that markdown isn't parsed inside html tags.

I ended up making a workaround using quotes and attributes, kinda like this:

My text
{ :notice }

@Martin1887
Copy link
Collaborator

Sorry, but these types of extensions are out of the scope of this project. In the long term, having a plugin system enabling these types of rules to be plugged from external crates would be desirable, but it is not a guaranteed feature and it will take much time.

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

No branches or pull requests

3 participants