improved readme

This commit is contained in:
2015-03-31 02:12:55 +02:00
parent 51b97ac5dd
commit 744c9dcee0
+8 -10
View File
@@ -3,7 +3,13 @@ ABBR
Abbr is a JavaScript library / function for finding, highlighting and annotating abbreviations in text.
It needs no extra markup, all is done automatically. Just tell it what words you want to explain, and it'll do it.
It goes through text and wrapps acronyms (or anything you want) in `<abbr>` tags (or other of choice), and gives them
`title` attribute with explanation (again, customizable).
It needs **no extra markup**, all is done automatically. Just tell it what words you want to explain, and it'll do it.
Usage
-----
Abbr takes the following (default) arguments:
@@ -28,15 +34,7 @@ Abbr takes the following (default) arguments:
All config options are optional (though, obviously, you don't want to leave `words` empty).
To run it, simply call:
```js
abbr({
// Your options here
});
```
For example:
To run it, simply call (example):
```js
abbr({