[Pmwiki-users] More on attachments
Davis, James C.
jdavis at cob.tamucc.edu
Tue Nov 19 17:18:41 CST 2002
This could be fixed with a new kind of brackets for style manipulation.
{{attributes url.jpg}} renders as <img src="url.jpg" attributes>
and
{{attributes [[url.jpg]]}} renders as <a href="url.jpg" attributes>[1]</a>
I don't know if this goes against the pmwiki philosophy, but I think it
should be considered.
James Davis
Network Manager
College of Business
Texas A&M University - Corpus Christi
(361) 825-5926
jdavis at cob.tamucc.edu
-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at sci.tamucc.edu]
Sent: Tuesday, November 19, 2002 5:06 PM
To: 'pmwiki-users at pmichaud.com'
Subject: RE: [Pmwiki-users] More on attachments
Woops! I found a slight flaw in my earlier proposal:
> ...
> [[attr url]] link to url rendered as <a href=url attr>[1]</a>
> [[attr text]] text rendered as <span attr>text</span>
> [[attr url.jpg]] image rendered as <img src=url.jpg attr>
Obviously the last one of these can't work, since [[attr url.jpg]]
is really a subcase of [[attr url]] and should be rendered as
<a href=url.jpg attr>[1]</a>. But I think it's such a minor case
anyway that it's not worth worrying about and doesn't affect the basic
concept of the proposed syntax.
Pm
_______________________________________________
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list