bartholomew icon indicating copy to clipboard operation
bartholomew copied to clipboard

render markdown body only on request

Open karthik2804 opened this issue 1 year ago • 0 comments

This PR adds a new handlebars helper render_markdown.

This helper allows us to conditionally render the markdown in the body which helps with rendering performance as we currently render the entire set of pages when indexed on each rendering.

This would be a breaking change wherein occurrences of

{{{ page.body }}}

would need to be replaced by

{{{ render_markdown page }}}

karthik2804 avatar Jul 15 '23 00:07 karthik2804