-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Class names for spans similar to divs #239
Comments
References? |
|
You'd save two characters of typing, at the cost of a new construct, less uniformity, and more complex parsing. Not sure it's worth it. |
Yeah, I use
I would say that another aspect here is the position of I actually came to this comment here to concur with "not needed", but now I am thinking, wouldn't it be cool if both of these:
produced a |
@matklad Regarding your new idea above, I am not sure what it would then mean for non-HTML renderers... |
Fleshed out the idea in significantly more detail in
Yup, that's the point. The XML model with tag-name,attributes,children is great for markup, and a lot of formats support that (DocBook XML, SILE XML, LaTeX environments). If the target format doesn't have a direct support for tag names, it could be rendered exactly as it is today, as a class. |
But what this does it have to do with Djot markup then? |
Many Markdown implementations support this syntax:
which would presumably be transformed by a filter into an HTML
<dfn>
element.The current syntax for such a thing would be
which is more verbose.
I think this should be supported for links as well:
The text was updated successfully, but these errors were encountered: