js.plated_chunks.format_chunks
chunks = plated_chunks.format_chunks(chunks)
Process the chunks according to their flags, a chunk with trim=ends set will have white space removed from its beginning and end.
A chunk with form=json will be parsed as json rather than a string. It can then be referenced inside chunks using chunk.member style lookups.
A chunk with form=markdown will be processed as markdown and turned into a html string.