move markdown rendering in a separate function
add a new option for watching file change