README.md in deepl-rb-2.0.0 vs README.md in deepl-rb-2.1.0
- old
+ new
@@ -1,6 +1,6 @@
-[![Gem Version](https://badge.fury.io/rb/deepl-rb.svg)](https://badge.fury.io/rb/deepl-rb) [![Dependency Status](https://gemnasium.com/badges/github.com/wikiti/deepl-rb.svg)](https://gemnasium.com/github.com/wikiti/deepl-rb) [![CircleCI](https://circleci.com/gh/wikiti/deepl-rb.svg?style=shield)](https://circleci.com/gh/wikiti/deepl-rb) [![CodeCov](https://codecov.io/gh/wikiti/deepl-rb/branch/master/graph/badge.svg?token=SHLgQNlZ4o)](https://codecov.io/gh/wikiti/deepl-rb)
+[![Gem Version](https://badge.fury.io/rb/deepl-rb.svg)](https://badge.fury.io/rb/deepl-rb) [![CircleCI](https://circleci.com/gh/wikiti/deepl-rb.svg?style=shield)](https://circleci.com/gh/wikiti/deepl-rb) [![CodeCov](https://codecov.io/gh/wikiti/deepl-rb/branch/master/graph/badge.svg?token=SHLgQNlZ4o)](https://codecov.io/gh/wikiti/deepl-rb)
# DeepL for ruby
A simple ruby wrapper for the [DeepL translation API (v1)](https://www.deepl.com/api.html).
@@ -88,25 +88,28 @@
| `ES` | Spanish
| `IT` | Italian
| `NL` | Dutch
| `PL` | Polish
-You can also use custom query parameters, like `tag_handling` or `split_sentences`:
+You can also use custom query parameters, like `tag_handling`, `split_sentences`, `non_splitting_tags` or `ignore_tags`:
```rb
translation = DeepL.translate '<p>A sample</p>', 'EN', 'ES',
- tag_handling: 'xml', split_sentences: false
+ tag_handling: 'xml', split_sentences: false,
+ non_splitting_tags: 'h1', ignore_tags: %w[code pre]
puts translation.text
# => "<p>Una muestra</p>"
```
The following parameters will be automatically converted:
| Parameter | Conversion
| --------------------- | ---------------
-| `preserve_formatting` | Convertes `false` to `'0'` and `true` to `'1'`
-| `split_sentences` | Convertes `false` to `'0'` and `true` to `'1'`
+| `preserve_formatting` | Converts `false` to `'0'` and `true` to `'1'`
+| `split_sentences` | Converts `false` to `'0'` and `true` to `'1'`
+| `non_splitting_tags` | Converts arrays to strings joining by commas
+| `ignore_tags` | Converts arrays to strings joining by commas
### Usage
To check current API usage, use: