
1. [[{.someclass}url|label]]
2. [[{#someid}url|label]]
3. [[{#someid.someclass}url|label]]
Block markup becomes more complicated:
Tables:
|{.someclass}cell content|
Paragraphs:
{.someclass}graf content
[[.xml_id: rel_path | rev_path | title_path :: URL | label +style=s1:v1;s2:v2 (comment)]]Multiple classes for an element must be specifiable of course, suggesting we aim for a general mechanism in the process. Thus I propose to precede the names of XHTML attributes with the plus sign. The four positionals being proposed for a link (id, rel_path, rev_path, and title_path) map to XHTML attributes and could also/instead be spec'd using +id, +rel, +rev & +title. However given my intent to minimize author use of this attributes mechanism I think it's better for annotation to have a consistent model that's been based substantially on the double-colon.
I think, perhaps by accident, a nice pattern that has arisen in Creole is the use of single characters at the beginning of a line to signify block markup (lists and tables), and double characters anywhere to signify inline markup. These types of patterns are good for both implementers and users.
-- StephenDay 2008-Sept-19
IMO I'd like to see inline-lists be distinct from block-lists by virtue of the latter being preceded by an empty line, just as for paragraphs -- users would readily understand that I think. Thus, the "empty line" is my choice for a general, minimalistic indication of a subsequent text block, although that approach is probably contradicted in Creole 1.0 syntax, e.g. table and hx, and by certain suggestions (like block quote) that do not have such requirement. Maybe those can conform to this approach, in 2.0.
That said, I think a graf tag (to which XHTML id/attrs are attached) should simply be the NL tag(!) -- easily detected by the presence of a required xml:id &/or attrs specification (else it is translated to a <br/> element). Thus, the para tag with id/attrs would be
\\.id1: +attr1=val-1 val-2 +attr2=val-n... (comment) Here is the content of a graf. \\.id2: +attr1=val-1 ... (comment) Here is the content of the next graf.Simple enough?
Welcome Visitor
Log in