Permalink
Browse files

add a fix

  • Loading branch information...
1 parent 589334c commit 8b3e36e664206c539b28d07eaa7210c0294593aa @diunko diunko committed Sep 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/shmakowiki.ometajs
View
@@ -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],

0 comments on commit 8b3e36e

Please sign in to comment.