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

feat: Handle inline nodes attributes #408

Closed
atinux opened this issue Jun 10, 2021 — with Volta.net · 4 comments · Fixed by #471
Closed

feat: Handle inline nodes attributes #408

atinux opened this issue Jun 10, 2021 — with Volta.net · 4 comments · Fixed by #471
Labels
enhancement New feature or request

Comments

Copy link
Contributor

atinux commented Jun 10, 2021

A crazy idea, would that be possible?

Hello (World){.text-primary-500}!

And it will render

Hello <span class="text-primary-500">World</span>!

Also, the question about combination might be tricky:

Hello **(World){.text-primary-500}**!
@atinux atinux added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jun 10, 2021 — with Volta.net
Copy link
Collaborator

Surely it is possible. It requires create an extension for Micromark

Also, the question about combination might be tricky:

Combinations is Micromark is straight forward and with a some consideration we can make it work.

Copy link
Contributor Author

atinux commented Jun 11, 2021

That is nice to read this 😄

Copy link
Collaborator

What if instead of parentheses we use square brackets for text? This will improve visual consistency of markdown data since links use [] and inline components use [] for slot.

Use [World]{.text-primary-500} instead of (World){.text-primary-500}

Copy link
Contributor Author

atinux commented Jun 21, 2021

I really like using Square brackets too, great idea!

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

Successfully merging a pull request may close this issue.

2 participants