additional list functionality (ala pandoc: fancy_lists)#2
additional list functionality (ala pandoc: fancy_lists)#2r2evans wants to merge 1 commit intodefunkt:masterfrom
Conversation
The fancy_lists extension in pandoc allows lists to use letters as well as numbers (and roman numerals). Additionally lists can be defined and/or continued using a "#" instead of numbers. This patch modifies "markdown-insert-list-item" to include some checks for numbers versus letters (no roman numerals yet) and the hash. This also modified many of the regex consts for headers to account for a following list item being a line starting with "#. " (which is legal for pandoc even if not for all markdown renderers.
|
I apologize for my elisp ... it's a bit rusty to say the least, and I know I'm ignoring a "better" way to do this: make its use optional via a customize variable. I tested predominantly with Alt-enter, Ctrl-u Alt-enter, and Ctrl-u Ctrl-u Alt-enter (my primary reason for modifying the code), so if other testing should be necessary, please advise. Thanks! |
|
You may wish to submit this to http://github.com/jrblevin/markdown-mode instead, since that's the official repo. This one is just a mirror. |
|
I didn't know about that, thanks. I was (blindly) trusting the annotation that this is mirrored from a non-github repo (on jblevins.org), for some reason believing that defunkt and jrblevin were the same. Funny. That explains the lack of discussion :-) |
|
Yeah, I went through a similar process. This repo is also the first google search result for "github markdown-mode", which is confusing as well... |
The fancy_lists extension in pandoc allows lists to use letters as
well as numbers (and roman numerals). Additionally lists can be
defined and/or continued using a "#" instead of numbers. This patch
modifies "markdown-insert-list-item" to include some checks for
numbers versus letters (no roman numerals yet) and the hash.
This also modified many of the regex consts for headers to account for
a following list item being a line starting with "#. " (which is
legal for pandoc even if not for all markdown renderers.