Added two helper functions for applying markdown and syntax highlighting