Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional list functionality (ala pandoc: fancy_lists) #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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