It looks like there are errors around line 578 and line 711. Have a look in Reading view to verify.
If you fix those up, moving the $$s to their own line (line 548) and adding a new line after the list item (line 711) , linking to specific headings and auto-completion should start working.