Searching in Mirage

Today I added a rudimentary version of highlighting search results on mirage. It works by searching for the occurences of the searched term in a few fields and wrapping the term in <mark></mark> tags.

It still has some issues, like only highlighting the term in the content field but not the title field.

I’m still very happy with this first attempt, since it drastically improves the usefulness of the search.

A screenshot of mirage on the search page, showing some results for the term node. In the background, there is a instance of sublime text showing a elixir file.

By Inhji * * * Permalink