Add context awareness to localizeMarkup
Update example