def getLinkLine(line):
 linkStartIndex = line.find(globalWikiLinkStart)
 squareEndBracketIndex = line.find(']', linkStartIndex)
 greaterThanIndex = line.find('>', linkStartIndex, squareEndBracketIndex)
 greaterThanIndexPlusOne = (greaterThanIndex + 1)
 closeATagIndex = line.find('</a>', greaterThanIndexPlusOne, squareEndBracketIndex)
 linkText = line[((closeATagIndex + len('</a>')) + 1):squareEndBracketIndex]
 linkLine = ((((line[:linkStartIndex] + line[(linkStartIndex + 1):greaterThanIndexPlusOne]) + linkText) + '</a>') + line[(squareEndBracketIndex + 1):])
 return linkLine

def getLinkLine ( line ) : linkStartIndex = line . find ( globalWikiLinkStart ) squareEndBracketIndex = line . find ( ']' , linkStartIndex ) greaterThanIndex = line . find ( '>' , linkStartIndex , squareEndBracketIndex ) greaterThanIndexPlusOne = ( greaterThanIndex + 1 ) closeATagIndex = line . find ( '</a>' , greaterThanIndexPlusOne , squareEndBracketIndex ) linkText = line [ ( ( closeATagIndex + len ( '</a>' ) ) + 1 ) : squareEndBracketIndex ] linkLine = ( ( ( ( line [ : linkStartIndex ] + line [ ( linkStartIndex + 1 ) : greaterThanIndexPlusOne ] ) + linkText ) + '</a>' ) + line [ ( squareEndBracketIndex + 1 ) : ] ) return linkLine
get the link line with the wiki style link converted into a hypertext link .