<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>markup.ss</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,12 +3,14 @@
 (require (planet &quot;leftparen.scm&quot; (&quot;vegashacker&quot; &quot;leftparen.plt&quot; 4 (= 1)))
          (planet &quot;util.scm&quot; (&quot;vegashacker&quot; &quot;leftparen.plt&quot; 4 (= 1)))
          &quot;social.ss&quot;
+         &quot;markup.ss&quot;
          )
 
 (provide get-feature-requests-popular
          get-feature-requests-newest
          get-feature-requests-completed
          feature-request-expl
+         any-body-markup
          feature-request-validator)
 
 (define (get-feature-requests-completed)
@@ -37,9 +39,12 @@
 ;; record.  But, in reality, if you do see &quot;missing&quot; on the site, it means that
 ;; something got screwed up, or we aren't validating correctly or something.
 (define (feature-request-expl fr-rec)
-  (or (aand (rec-prop fr-rec 'explanation) (string-trim it))
+  (or (aand (rec-prop fr-rec 'explanation) (any-body-markup it))
       &quot;missing&quot;))
 
+(define (any-body-markup str)
+  (markup-body (string-trim str)))
+
 (define (feature-request-validator fr-rec)
   (let ((lookup (rec-prop fr-rec 'explanation)))
     (and (or (not lookup) (string=? &quot;&quot; (string-trim lookup)))</diff>
      <filename>data.ss</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,7 @@
 (require (planet &quot;leftparen.scm&quot; (&quot;vegashacker&quot; &quot;leftparen.plt&quot; 4 (= 1)))
          (planet &quot;util.scm&quot; (&quot;vegashacker&quot; &quot;leftparen.plt&quot; 4 (= 1)))
          &quot;templates.ss&quot; ;;XXX shouldn't be here - need to abstract out at some point
+         &quot;data.ss&quot;
          )
 
 (provide comment-on-item-link
@@ -71,7 +72,7 @@
                            #:redirect-to (redirect #f))
   (define (show-indiv-comment c)
     `(div ((class &quot;comment&quot;))
-          ,(rec-prop c 'body)
+          ,(any-body-markup (rec-prop c 'body))
           ,@(splice-if reply-link `(div ((class &quot;reply-link&quot;))
                                         ,(comment-on-item-link c
                                                                #:link-prose &quot;reply&quot;</diff>
      <filename>discuss.ss</filename>
    </modified>
    <modified>
      <diff>@@ -29,10 +29,6 @@
   } catch(err) {}&lt;/script&gt;
 &quot;)
 
-(define (apply-markup str)
-  (regexp-replace* #px&quot;http://[[:graph:]]*&quot; str 
-                   (lambda (x) (raw-str (format &quot;&lt;a href=\&quot;~A\&quot;&gt;~A&lt;/a&gt;&quot; x x)))))
-
 (define (li-a link name) 
   `(li (a ((href ,link)) ,name)))
 
@@ -84,9 +80,10 @@
         #:validate feature-request-validator))
 
 (define (feature-detail-page-view feat)
-  (let ((exp (rec-prop feat 'explanation)))
+  (let ((exp-raw (string-trim (rec-prop feat 'explanation)))
+        (exp (feature-request-expl feat)))
     (page
-     #:design (base-design #:title (format &quot;lawnelephant | ~A&quot; (string-ellide exp 10)))
+     #:design (base-design #:title (format &quot;lawnelephant | ~A&quot; (string-ellide exp-raw 10)))
      `(div ((id &quot;doc&quot;))
            (div ((id &quot;hd&quot;))
                 (span ((id &quot;header&quot;)) </diff>
      <filename>view.ss</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b9610bf525b5d0454c801591f627505e5cb4f605</id>
    </parent>
  </parents>
  <author>
    <name>Rob Hunter</name>
    <email>rob.hunter@gmail.com</email>
  </author>
  <url>http://github.com/vegashacker/lawnelephant/commit/db06b2215d327efa8dc2365a85f36eefdcc596a7</url>
  <id>db06b2215d327efa8dc2365a85f36eefdcc596a7</id>
  <committed-date>2009-03-12T23:31:09-07:00</committed-date>
  <authored-date>2009-03-12T23:31:09-07:00</authored-date>
  <message>added url-ificiation to feature request bodies and to comments; also added newline recognition</message>
  <tree>8d9bf8e71c37d410fe3cfb34035baf0df3789a0f</tree>
  <committer>
    <name>Rob Hunter</name>
    <email>rob.hunter@gmail.com</email>
  </committer>
</commit>
