How to add Markdown inside a function to pretty print equation

Thank you very much it worked.