Text Parser fix

- [x] fix for resource parsing when they include inline link definitions
- [ ] rspec tests to verify that fix is working