def connect_table(self, table, chunk, markup):
k = markup.find(chunk)<EOL>i = markup.rfind("<STR_LIT>", <NUM_LIT:0>, k)<EOL>j = markup.find("<STR_LIT:\n>", i+<NUM_LIT:1>)<EOL>paragraph_title = markup[i:j].strip().strip("<STR_LIT>")<EOL>for paragraph in self.paragraphs:<EOL><INDENT>if paragraph.title == paragraph_title:<EOL><INDENT>paragraph.tables.append(table)<EOL>table.paragraph = paragraph<EOL><DEDENT><DEDENT>
Creates a link from the table to paragraph and vice versa.

        Finds the first heading above the table in the markup.
        This is the title of the paragraph the table belongs to.