Indent properly
Fix indent
Move the `markdown` function to the text library
Factor out a commonly used expression
Add names to functions in generated JS.
Fix indentation