diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-07-13 15:17:06 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-07-13 15:51:08 +0200 |
commit | b9169aa1ecd1380b70b7f83786071e5a936147ec (patch) | |
tree | 4d02c0f01c425a9028fe8d5e93710b3c823523c4 | |
parent | 1c19df011d2819b7afb2d4fa499a7683a24310b0 (diff) |
deprecate punctuation-dependent markup
-rw-r--r-- | README.md | 55 |
1 files changed, 24 insertions, 31 deletions
@@ -465,37 +465,6 @@ An attribute beginning with the `=` sign indicates a subject IRI, equivalent to ### Properties in lists -#### Key/Value pairs - -If the list item contains `:` or `=`, the annotation is applied to the string after this character. -If final non-space non-annotation character of the list item is `,` or `;`, the annotation is applied to the string before this character. - -```markdown -- Name: Thomas Francart {foaf:name} -- Age = 39 {foaf:age} -- Profession: Semantic Web Consultant; {rdfs:comment} -- Hobby: Bird watching; train spotting; {rdfs:comment} -``` - -Should yield (note how semi-colons are excluded from last annotations): - -```html -<ul> - <li>Name: <span property="foaf:name">Thomas Francart</span></li> - <li>Age = <span property="foaf:age">39</span></li> - <li>Profession: <span property="rdfs:comment">Semantic Web Consultant</span>;</li> - <li>Hobby: <span property="rdfs:comment">Bird watching</span>; <span property="rdfs:comment">train spotting</span>;</li> -</ul> -``` - -:::danger -:heavy_exclamation_mark: FIXME: Undecided if punctuation exceptions for lists should be included -::: - -:::danger -:heavy_exclamation_mark: FIXME: Undecided if final punctuation should be omitted -::: - #### Value-only list items ```markdown @@ -1135,3 +1104,27 @@ Should yield <li>rdfs:comment: <span property="rdfs:comment">Semantic Web Consultant</span></li> </ul> ``` + + +#### Omit list item leading key and trailing repetition punctuation + +If the list item contains `:` or `=`, the annotation is applied to the string after this character. +If final non-space non-annotation character of the list item is `,` or `;`, the annotation is applied to the string before this character. + +```markdown +- Name: Thomas Francart {foaf:name} +- Age = 39 {foaf:age} +- Profession: Semantic Web Consultant; {rdfs:comment} +- Hobby: Bird watching; train spotting; {rdfs:comment} +``` + +Should yield (note how semi-colons are excluded from last annotations): + +```html +<ul> + <li>Name: <span property="foaf:name">Thomas Francart</span></li> + <li>Age = <span property="foaf:age">39</span></li> + <li>Profession: <span property="rdfs:comment">Semantic Web Consultant</span>;</li> + <li>Hobby: <span property="rdfs:comment">Bird watching</span>; <span property="rdfs:comment">train spotting</span>;</li> +</ul> +``` |