Use text properties to mark code blocks
commited6b05e91765345f77c393e1441f4b5e3601fd9e
authorJason Blevins <jrblevin@sdf.org>
Mon, 14 Dec 2015 21:01:07 +0000 (14 16:01 -0500)
committerJason Blevins <jrblevin@sdf.org>
Tue, 15 Dec 2015 05:15:37 +0000 (15 00:15 -0500)
treee266167e2324bcb52db667316f89e0733df19e20
parent496fd1918febe0946aa9331798e247edcf41c7b9
Use text properties to mark code blocks

During the syntax analysis phase, mark pre blocks, tilde fenced code
blocks, and GFM quoted code blocks with text properties. Use these
properties for determining syntax later when setting font-lock faces
and when to determine when the point is within a code block.

As a side effect of these changes, we now no longer require a blank
line preceeding GFM code blocks. This is recommended for style
reasons, but apparently it is not actually required.
markdown-mode.el
tests/markdown-test.el