4 ms·
Ask HN: Why isn't Markdown working?
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.**
- deleted 17y ago[deleted]
- jauco 17y agoDid HN ever support markdown? (Except for the asterisks (which still appear to work))
- Sephr 17y agoIt supported `inline code`.
- davidw 17y agoThis site doesn't use markdown: http://news.ycombinator.com/formatdoc http://news.ycombinator.com/formatdoc
- pmarin 17y agoIn the Arc source, the function that implements formatdoc syntax is named markdown. http://arcfn.com/doc/app.html#markdown http://arcfn.com/doc/app.html#markdown
- davidw 17y agoOk. However #It ##is `not` [markdown](http://en.wikipedia.org/wiki/Markdown http://en.wikipedia.org/wiki/Markdown)
- pmarin 17y agoYep, 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))))))))