Refactored text panel to use markdown