Id's would be more than good enough, and super easy to implement. Something like this
1. hello
2. [foo] This line is Foo
3. This line is Bar and connects to Foo
4. (foo)