Rendering the markdown in the query/search results

Let’s go to the topic directly.

The built-in query and research function is very powerful for text searching. However, the search results returned are just plain texts. And I think many people would prefer a result looks similar to the live preview mode. And I kept wondering why there is no such a core plugin or 3-rd party plugin that can do this.

Accidentally, I red this post and found that there is a plugin, but is experimental, that can do this job:

A very cool example of the use case is: you can now build a easy-to-read customized todo list collecting all the todos in every notes within your vault using the query command like :


And if you change the condition, it can do more, such as generate a readable summary or report dynamically, etc. That is really awesome.

You can also print this result if you remove the limit on the max query result window height by applying the css snippet:{

Moreover, after install this plugin, I found it not only enhances the query result, it also “upgrades” the built-in search function result to support the markdown rendering. It feels like buy one get one for free.

I see there is not so many discussion on this plugin, so I just put it here, so that more people who has similar requirement on search result rendering can have a try on this one.

1 Like

The following is an example of querying “callout” in the sandbox vault:
The rendering result is satisfying.

The following is an example of search result rendering, notice an extra button is added by the plugin: