Added multi paragraph support for \res. Fixes #16.