Fix markdown-code-at-point-p false positive
commit47c067abd6492f4bfac14e31c17b7804e5799a7a
authorJason Blevins <jrblevin@sdf.org>
Mon, 18 Mar 2013 03:50:45 +0000 (17 23:50 -0400)
committerJason Blevins <jrblevin@sdf.org>
Mon, 18 Mar 2013 03:53:58 +0000 (17 23:53 -0400)
treebe5ad9c5214f27e5258d5cfc9fe43ecdd258842e
parent885fb86f5e201da1d906e70c10f121f2ed2d27ae
Fix markdown-code-at-point-p false positive

This function incorrectly identified code for first two characters of
line in blocks with no code.  This is because we were
checking (match-beginning 0), but the match data wasn't being set if the
loop didn't execute.

Includes a test case.

Also update some related docstrings.
markdown-mode.el
tests/markdown-test.el