Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Dec 3, 2016
1 parent 315224f commit d064f49
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -62,6 +62,7 @@ console.log(tp.execute(' Мир - мой мир!! '));
+ [gulp-typograf](https://github.com/typograf/gulp-typograf)
+ [typograf-loader](https://github.com/exah/typograf-loader)
+ [hexo-typograf](https://github.com/toiletpatrol/hexo-typograf)
+ [TinyMCE](https://habrahabr.ru/post/266337/)

### [Командный интерфейс](https://github.com/typograf/typograf-cli)

Expand Down Expand Up @@ -99,8 +100,20 @@ tp.disable('*'); // Отключить все правила
### Изменить настройку у правила
```js
var tp = new Typograf({lang: 'ru'});

// Название правила, название настройки, значение

// Неразрывный пробел перед последним словом в предложении, не более 5 символов
tp.setting('common/nbsp/beforeShortLastWord', 'lengthLastWord', 5);

// Вложенные кавычки тоже «ёлочки»
tp.setting('ru/punctuation/quote', 'lquote2', '«');
tp.setting('ru/punctuation/quote', 'rquote2', '»');
tp.setting('ru/punctuation/quote', 'lquote3', '«');
tp.setting('ru/punctuation/quote', 'rquote3', '»');

// Неразрывный пробел после короткого слова, не более 3 символов
tp.setting('common/nbsp/afterShortWord', 'lengthShortWord', 3);
```

### Добавить простое правило
Expand Down

0 comments on commit d064f49

Please sign in to comment.