-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Attribute references #259
Comments
You can already add attributes to a link reference, using the syntax that is always used for adding attributes to blocks:
Currently link references only work for links. It could be interesting to think about letting them work for spans, so that when a URL is missing, as in the above example, we'd get
|
Thanks for your answer! I just though that
is not very self-explanatory, and less readable than a "first class support":
But maybe that's not worth "first class support". |
I kind of agree with you about intuitive readability. But it's good to have a consistent system for adding attributes that works the same for every type of block. Otherwise people have to remember where attributes can go in each case. There's a high bar for making an exception, I think. |
However, one could argue that there's a conceptual difference between adding an attribute to a reference definition block, and making the attribute part of the content of the reference (which is what we're doing here). |
I'd like to use the djot syntax for writing presentations, that may require quite a lot of attributes.
However, inline attributes in the middle of the text harm the readability, which was the initial goal of markdown (from which djot is clearly inspired!)
I'd like to propose some idea to improve that: references to a set of attributes.
So:
:
followed by a{
is a reference attribute definition,In particular the above would be equivalent to:
What do you think of this syntax?
The text was updated successfully, but these errors were encountered: