Skip to content

Commit

Permalink
Update markup element example to updated syntax (#285)
Browse files Browse the repository at this point in the history
Update markup element examples to updated syntax
  • Loading branch information
eemeli authored and echeran committed Sep 20, 2022
1 parent afe212a commit 98a817a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ plucking the first name from the object representing a person:
A message with two markup-like element placeholders, `button` and `link`,
which the runtime can use to construct a document tree structure for a UI framework.

[{button}Submit{/button} or {link}cancel{/link}.]
[{+button}Submit{-button} or {+link}cancel{-link}.]

### Selection

Expand Down Expand Up @@ -387,11 +387,11 @@ MarkupEnd ::= '-' Name /* ws: explicit */
Examples:

```
[This is {b}bold{/b}.]
[This is {+b}bold{-b}.]
```

```
[{h1 name=(above-and-beyond)}Above And Beyond{/h1}]
[{+h1 name=(above-and-beyond)}Above And Beyond{-h1}]
```

## Tokens
Expand Down

0 comments on commit 98a817a

Please sign in to comment.