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

Add support for arbitrary block attributes. #11

Closed
hayleigh-dot-dev opened this issue Dec 20, 2023 · 0 comments
Closed

Add support for arbitrary block attributes. #11

hayleigh-dot-dev opened this issue Dec 20, 2023 · 0 comments

Comments

@hayleigh-dot-dev
Copy link
Sponsor

hayleigh-dot-dev commented Dec 20, 2023

Jot already supports class and id attributes on blocks using {.wibble} and {#wobble} respectively. Djot additionally supports arbitrary attributes attached to blocks like so:

{source="Iliad"}
> Sing, muse, of the wrath of Achilles

Lustre's docs would make heavy use of these in its API reference to mark which platforms the thing being documented is available on:

Screenshot 2023-12-20 at 22 11 00

☝️ This would be written as

{api=true}
{target=erlang}
{target=javascript}
### Error

Context: I think I might be the only one properly using jot right now, so I'm opening issues here in case anyone wants to implement bits of the spec that will have immediate impact.

@lpil lpil closed this as completed Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants