diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-07-13 15:48:18 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-07-13 18:37:11 +0200 |
commit | f9dcc1d64ea1df3bb9d2d21017a150d02a20f7c3 (patch) | |
tree | 3ef0ee91c3b75b69a0368f49764ce26644ce904d | |
parent | 39978c89fdd3112108e4f6ebf5dcffb055b5755c (diff) |
Move list examples to scope definitions
-rw-r--r-- | README.md | 99 |
1 files changed, 45 insertions, 54 deletions
@@ -193,6 +193,25 @@ Would produce the following HTML+RDFa: Notice how second paragraph has punctuation *after* the hints. +Similarly for a list: + +```markdown +- Thomas Francart {foaf:name} +- 39 {foaf:age} +- Semantic Web Consultant {rdfs:comment} +``` + +Would produce the following HTML+RDFa: + +```html +<ul> + <li><span property="foaf:name">Thomas Francart</span></li> + <li><span property="foaf:age">Thomas Francart</span></li> + <li><span property="rdfs:comment">Semantic Web Consultant</span></li> +</ul> +``` + + ### Block-tree scope Hints in a block with non-whitespace characters after the hints and none before, applies to the block and any descendant blocks. @@ -253,9 +272,32 @@ Would produce the following HTML+RDFa: <h1>Animals</h1> ``` -:::warning -Insert example with a list -::: +Similarly for a list: + +```markdown +{foaf:member} +- Thomas +- Vincent +- Nicolas +``` + +Is equivalent to + +```markdown +- Thomas {foaf:member} +- Vincent {foaf:member} +- Nicolas {foaf:member} +``` + +And would produce the following HTML+RDFa: + +```html +<ul> + <li><span property="foaf:member">Thomas</span></li> + <li><span property="foaf:member">Vincent</span></li> + <li><span property="foaf:member">Nicolas</span></li> +</ul> +``` ### Block-cluster scope @@ -463,57 +505,6 @@ An attribute beginning with the `=` sign indicates a subject IRI, equivalent to ## Annotate properties (RDFa "property" attribute) -### Properties in lists - -#### Value-only list items - -```markdown -- Thomas Francart {foaf:name} -- 39 {foaf:age} -- Semantic Web Consultant {rdfs:comment} -``` - -Should yield - -```html -<ul> - <li><span property="foaf:name">Thomas Francart</span></li> - <li><span property="foaf:age">Thomas Francart</span></li> - <li><span property="rdfs:comment">Semantic Web Consultant</span></li> -</ul> -``` - - -#### Annotate a list with a property - - -Annotating a list with a property annotation should be treated as if all list items are annotated with the same property - -```markdown -{foaf:member} -- Thomas -- Vincent -- Nicolas -``` - -Is equivalent to - -```markdown -- Thomas {foaf:member} -- Vincent {foaf:member} -- Nicolas {foaf:member} -``` - -And should yield - -```html -<ul> - <li><span property="foaf:member">Thomas</span></li> - <li><span property="foaf:member">Vincent</span></li> - <li><span property="foaf:member">Nicolas</span></li> -</ul> -``` - ### Inline properties #### Properties on inline delimiters |