Added title function for rst and mkd files