Skip to content

Conversation

@r2evans
Copy link

@r2evans r2evans commented Feb 25, 2015

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.

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.
@r2evans
Copy link
Author

r2evans commented Feb 25, 2015

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!

@kini
Copy link
Contributor

kini commented Sep 2, 2015

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.

@r2evans
Copy link
Author

r2evans commented Sep 2, 2015

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 :-)

@kini
Copy link
Contributor

kini commented Sep 3, 2015

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants