markdown_preview: some code style fixes