Rename private functions in markup.py