relative links fixed for search snippets

relative markmin links in chapter text assume rendering in /chapter/29/ style URL, but snippets in search look like /search/29.
This fixes relative links in search snippets.