maeser.render module

maeser.render module#

Markdown response conversion module. Intended for use with LLM output.

This module provides a utility function to easily customize HTML layouts and convert markdown responses to HTML with additional processing, such as adding target=”_blank” to anchor tags and adjusting paths for images.

maeser.render.get_response_html(response: str) str[source]#

Convert a markdown response to HTML.

Parameters:

response (str) – The markdown response.

Returns:

The HTML response.

Return type:

str