Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a fix

  • Loading branch information...
commit 8b3e36e664206c539b28d07eaa7210c0294593aa 1 parent 589334c
@diunko diunko authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/shmakowiki.ometajs
View
5 src/shmakowiki.ometajs
@@ -95,9 +95,12 @@ ometa ShmakoWiki {
listItemContent = (~blockEnd char)+:c -> ShmakoWiki.matchAll(c.join(''), 'topInline'),
anySubList :l = '\n' ~~(anyLi:s) ?(s.length > l.length) anyList:sl -> sl,
+
+ anySupList :l = ~~(anyLi:s) ?(s.length < l.length) anyList:sl -> sl,
listItem :t :l = apply(t):s ?(s.length == l.length) listItemContent:c
- (anySubList(s)+ | (('\n' ~~apply(t)) | ~~blockEnd) -> ''):cc -> { if(cc) c = c.concat(cc); [t + 'stItem', c] },
+ (anySubList(s)+ | (('\n' ~~anySupList(s) | '\n' ~~apply(t)) | ~~blockEnd) -> ''):cc -> { if(cc) c = c.concat(cc); [t + 'stItem', c] },
+
list :t = ~~(apply(t):s) listItem(t, s)+:c -> [t + 'st', c],
Please sign in to comment.
Something went wrong with that request. Please try again.