auto render Markdown
small refactor style