def hash_inline_links(text, hashes, markdown_obj):
def sub(match):<EOL><INDENT>is_img = match.group(<NUM_LIT:1>) != '<STR_LIT>'<EOL>content = match.group(<NUM_LIT:2>)<EOL>link = match.group(<NUM_LIT:3>)<EOL>title = match.group(<NUM_LIT:5>)<EOL>if title:<EOL><INDENT>title = '<STR_LIT>'.format(title.strip())<EOL><DEDENT>else:<EOL><INDENT>title = '<STR_LIT>'<EOL><DEDENT>if is_img:<EOL><INDENT>result = '<STR_LIT>'.format(<EOL>link, content, title)<EOL><DEDENT>else:<EOL><INDENT>result = '<STR_LIT>'.format(link,<EOL>markdown_obj.convert(content).replace('<STR_LIT>', '<STR_LIT>').replace('<STR_LIT>', '<STR_LIT>'),<EOL>title)<EOL><DEDENT>hashed = hash_text(result, '<STR_LIT>')<EOL>hashes[hashed] = result<EOL>return hashed<EOL><DEDENT>return re_inline_link.sub(sub, text)<EOL>
Hashes an <a> link or an <img> link.

    This function only converts inline link styles:

        [text here](path/to/resource "optional title")
        ![alt text here](path/to/resource "optional title")

    For reference style links, see hash_reference_links