tweak modes
add constexpr keyword to c++
update test
fix autoclosing of p tag