8000 Fix markup examples to show that literals work normally (#1057) · unicode-org/message-format-wg@e00fb78 · GitHub
[go: up one dir, main page]

Skip to content

Commit e00fb78

Browse files
authored
Fix markup examples to show that literals work normally (#1057)
Fixes #1029 Removed unnecessary literal quotes from examples and ensured that there was also an option that required pipes so both were visible. Did not add any notes to explain this.
1 parent fda35a8 commit e00fb78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,14 +635,14 @@ markup = "{" o "#" identifier *(s option) *(s attribute) o ["/"] "}" ; open and
635635
> A _message_ with one `button` markup span and a standalone `img` markup element:
636636
>
637637
> ```
638-
> {#button}Submit{/button} or {#img alt=|Cancel| /}.
638+
> {#button}Submit{/button} or {#img alt=Cancel src=|../cancel.jpg| /}.
639639
> ```
640640
641641
> A _message_ containing _markup_ that uses _options_ to pair
642642
> two closing markup _placeholders_ to the one open markup _placeholder_:
643643
>
644644
> ```
645-
> {#ansi attr=|bold,italic|}Bold and italic{/ansi attr=|bold|} italic only {/ansi attr=|italic|} no formatting.}
645+
> {#ansi attr=|bold,italic|}Bold and italic{/ansi attr=bold} italic only {/ansi attr=italic} no formatting.}
646646
> ```
647647
648648
A _markup-open_ can appear without a corresponding _markup-close_.

0 commit comments

Comments
 (0)
0