import re


def FormatWikiLinks(html):
  """Given an html file, convert [[WikiLinks]] into *WikiLinks* just to ease
  readability."""
  wikilink = re.compile(r'\[\[(?:[^|\]]*\|)?([^\]]+)\]\]')
  return wikilink.sub(r'*\1*', html)