Update MarkdownPreview.py

variable using before assigment