support nested brackets and spaces in links

- behavior matches sundown