tpope/vim-markdown — pull request #24 by kirbysayshi (2012-08-01 14:26:26+00:00)
Title: Support for footnotes, embedded html

This is my first ever attempt at anything syntax related for vim, so please keep that in mind. I really don't know what I'm doing :)

But this pull adds support for highlighting footnotes as defined by markdown-extra. I'm not sold on linking `markdownFnText` to `Comment`, but it does set it off nicely visually, while retaining embedded highlighting for things like bold, italics, and links.

It supports footnotes of the following style:

````markdown
[^1]: This is a standard footnote, it can have [links](http://google.com) and nearly _anything_ else, including blocks (technically, not from this syntax highlighting).

[^2]:
This is also a footnote, which allows for better formatting for multiple paragraphs.

This is another paragraph of footnote 2.

[^3]: The two styles can also be combined.

See, this is still part of footnote 3!
````

Also contained is just something I fixed along the way. If HTML is embedded in the document, then the inner level of it was being marked as a code block.

Example HTML (`a`, `iframe`, and `figcaption` were being marked as code):

````html

Some text here

````

Again, this is my first vim syntax attempt, so any suggestions / tips are extremely welcome.