Only render edit action if rendering HTML

Resolves #97