laughinghan/mathquill — pull request #96 by laughinghan (2012-07-08 21:18:58+00:00)
Title: new implicit HTML template format

The first 42 commits (July 7 and before) are all in `html` and earlier, ignore those.

So there were these super mechanical rules for where you had to include the `mathquill-command-id` and `mathquill-block-id` attribute macros, that I realized really should be just be automated to get a way prettier template format, like
```html
#0
```
or
```html

#0
#1

```
At first I was worried that parsing the template would suck, since identifying the "top-level" tags to add `mathquill-command-id` attributes to can't be done with regexes, but with a stricter well-formedness requirement that we already conform to anyway it's pretty easy to count matching inner tag pairs.

This also adds a stricter requirement on the placement of block content markers, but the only violator was
`LatexCommandInput` which was fixed in the previous commit, and the requirement is necessary for other reasons, which had resulted in a long-standing bug in `LatexCommandInput` that was fixed in the
previous commit.