Implement currency formatting

- [x] Implementation
- [x] Tests
- [x] Doc

Fix #238 
This `if` is too complex, the regex test should be extracted. In the end, it shouldn't be necessary anymore to split the condition on multiple lines. If it still is, the indentation should be corrected, it should be one tab less.