Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Why isn't Markdown working?
3 points by Sephr on May 13, 2009 | hide | past | favorite | 6 comments
It seems just today on Wednesday that Markdown stopped working. For example:

`inline.code:string`, _emphasis_, __strong__, [link](//news.ycombinator.com)

   - List item using a dash.
   - Another list item.
   * This list item uses an asterick
Some multiline code:

     box = new multiline.codeblock({
       className: "foo",
       id: "1234",
       markdown: true
     });
Ordered list:

   1. *Emphasis using asterick.*
   2. **Strong using two astericks.**


This site doesn't use markdown:

http://news.ycombinator.com/formatdoc


In the Arc source, the function that implements formatdoc syntax is named markdown.

http://arcfn.com/doc/app.html#markdown


Ok.

However

#It

##is

`not`

[markdown](http://en.wikipedia.org/wiki/Markdown)


Yep, I think that formatdoc is a subset of markdown. PG makes an explicit reference to the original markdown in the code.

From app.arc:

   ; http://daringfireball.net/projects/markdown/syntax
   
   (def md-from-form (str (o nolinks))
     (markdown (trim (rem #\return (esc<>& str)) 'end) 60 nolinks))
   
   (def markdown (s (o maxurl) (o nolinks))
     (let ital nil
       (tostring
         (forlen i s
           (iflet (newi spaces) (indented-code s i (if (is i 0) 2 0))
                  (do (pr  "<p><pre><code>")
                    (let cb (code-block s (- newi spaces 1))
                      (pr cb)
                      (= i (+ (- newi spaces 1) (len cb))))
                    (pr "</code></pre>"))
                  (iflet newi (parabreak s i (if (is i 0) 1 0))
                         (do (unless (is i 0) (pr "<p>"))
                             (= i (- newi 1)))
                         (and (is (s i) #\*)
                              (or ital
                                  (atend i s)
                                  (and (~whitec (s (+ i 1)))
                                       (pos #\* s (+ i 1)))))
                          (do (pr (if ital "</i>" "<i>"))
                              (= ital (no ital)))
                         (and (no nolinks)
                              (or (litmatch "http://" s i)
                                  (litmatch "https://" s i)))
                          (withs (n   (urlend s i)
                                  url (cut s i n))
                            (tag (a href url rel 'nofollow)
                              (pr (if (no maxurl) url (ellipsize url maxurl))))
                            (= i (- n 1)))
                          (writec (s i))))))))


Did HN ever support markdown? (Except for the asterisks (which still appear to work))


It supported `inline code`.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: