Improved markdown grammar for better parsing.
Added definitions function implementation for Markdown for the code-outline plugin.