Skip to content
This repository was archived by the owner on Dec 17, 2018. It is now read-only.

Commit f592a33

Browse files
committed
Add links
1 parent 37133de commit f592a33

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
# messageformat-parser <a href="http://travis-ci.org/messageformat/parser"><img align="right" alt="Build Status" src="https://secure.travis-ci.org/messageformat/parser.png"></a>
22

3-
A PEG.js parser for [ICU MessageFormat](https://messageformat.github.io/guide/))
4-
strings -- part of [messageformat.js](https://messageformat.github.io/). Outputs
5-
an AST defined by [parser.pegjs](./parser.pegjs).
3+
A [PEG.js] parser for [ICU MessageFormat] strings – part of [messageformat.js].
4+
Outputs an AST defined by [parser.pegjs].
65

76
The generated parser function takes two parameters, first the string to be
87
parsed, and a second optional parameter `options`, an object containing arrays
9-
of keywords for `cardinal` and `ordinal` rules for the current locale -- these
8+
of keywords for `cardinal` and `ordinal` rules for the current locale these
109
are used to validate plural and selectordinal keys. If `options` or its fields
11-
are missing or set to false, the full set of valid Unicode CLDR keys is used:
10+
are missing or set to false, the full set of valid [Unicode CLDR] keys is used:
1211
`'zero', 'one', 'two', 'few', 'many', 'other'`. To disable this check, pass in
1312
an empty array.
1413

14+
[ICU MessageFormat]: https://messageformat.github.io/guide/
15+
[messageformat.js]: https://messageformat.github.io/
16+
[parser.pegjs]: ./parser.pegjs
17+
[PEG.js]: http://pegjs.org/
18+
[Unicode CLDR]: http://cldr.unicode.org/index/cldr-spec/plural-rules
19+
1520

1621
#### Installation
1722

0 commit comments

Comments
 (0)