Open
Conversation
A quick-and-dirty way to resolve issue demon386#9
This one relies on a lovingly hand-crafted regex rather than syntax of
the default Markdown.tmLanguage. Of course this should _really_ be
addressed at the level of the syntax. But I digress:
It supports the following list types (more or less in the order in
which they appear in the regex):
-
+
*
5.
a.
A.
5)
a)
A)
(5)
(a)
(A)
(@)
(@label-5_)
Because my attention is starting to wander, it does not support the
[two spaces after a single capital letter followed by a period](http://johnmacfarlane.net/pandoc/README.html#fn1)
rule, as well as roman numerals (e.g., `v)` or `III.`)
There are probably other issues I haven't noticed as well. Such as
those created by this excepionally long commit message :)
I call this "fake" because all I'm doing is matching IVXLCDM in either upper- or lowercase, without testing the validity of the construction.
Thanks to @vovkkk for patiently pointing this out.
Use `Ctrl+Enter` on a list to quickly add a new item.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I had to cherry pick through my devel branch. I hope this is everything :)