Attribute references
John Gruber
gruber at fedora.net
Sun Jan 9 21:03:54 EST 2005
Michel Fortin <michel.fortin at michelf.com> wrote on 01/09/05 at 4:19pm:
> > One advantage of this is that for something like classes, you can
> > define one class attribute defintion, and reuse it on as many
> > elements as you need.
>
> A class is already something you define at one place and reuse later.
> Because of this I tend to use small class names which are ideal when
> you refer to them often. I see no use in having to define another small
> name that will be a reference to the class name. I see this as a
> reference to a reference.
Then, maybe, the dot-syntax could be supported as an alternate
style, specific to assigning classes. And then any name starting
with a dot would be illegal as a reference name.
So you could write this:
## This is my header {.myclass}
to produce:
<h2 class='myclass'>This is my header</h2>
Maybe.
-J.G.
More information about the Markdown-Discuss
mailing list