Added map feature

When using Redaktilo to write a review bot for the docs, I had to write this helper method. I think it makes much sense to share it within redaktilo.

I've decided to put it in the Text class and not in the editor, since I don't think it makes sense to require an editor instance for something as simple as this.
the phpdoc need to be updated with the second argument