public
Description: Markdown processing with Nu. Use with any Nu or Objective-C project. Created by Grayson Hansard.
Homepage: http://programming.nu/posts/2007/10/10/markdown-in-nu
Clone URL: git://github.com/timburks/numarkdown.git
Fixed blockquoting problem, down to 6 test failures.
timburks (author)
Tue Nov 06 16:26:47 -0800 2007
commit  0ded74f2e7a154abf31d4d49880202c083deb294
tree    17ef52fc2b4968aed433bf0e0876aa2a7926adf8
parent  e23b2e29d051b67d2f5252817a036ffc7aa77f82
...
551
552
553
554
 
 
 
555
556
557
...
551
552
553
 
554
555
556
557
558
559
0
@@ -551,7 +551,9 @@
0
           (set bq (markdown_RunBlockGamut bq))
0
           (set bq (/^/m replaceWithString:" " inString:bq))
0
           ; These leading spaces screw with <pre> content, so we need to fix that:
0
- (set bq ((eregex -"(\s*<pre>.+?</pre>)" -"egsx") replaceWithString:((eregex -"^ " -"mg") replaceWithString:-"" inString:-"$1") inString:bq))
0
+ (((eregex -"(\s*<pre>.+?</pre>)" -"egsx") findAllInString:bq) each:
0
+ (do (m2)
0
+ (bq replaceOccurrencesOfString:(m2 group) withString:((eregex -"^ " -"mg") replaceWithString:-"" inString:(m2 groupAtIndex:1)))))
0
           (str replaceOccurrencesOfString:(m group) withString:"<blockquote>\n#{bq}\n</blockquote>\n\n")))
0
      str)
0
 

Comments

    No one has commented yet.