From f9dcc1d64ea1df3bb9d2d21017a150d02a20f7c3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 13 Jul 2020 15:48:18 +0200 Subject: Move list examples to scope definitions --- README.md | 99 +++++++++++++++++++++++++++++---------------------------------- 1 file changed, 45 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index b348d1f..f48f41f 100644 --- a/README.md +++ b/README.md @@ -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 + +``` + + ### 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:

Animals

``` -:::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 + +``` ### 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 - -``` - - -#### 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 - -``` - ### Inline properties #### Properties on inline delimiters -- cgit v1.2.3