Live data from Hacker News

The Markdown Mindset

hiltmon.com

31–40 of 52 posts

Re: The Markdown Mindset

#31
post #8

I like markdown. I dislike the use of brackets () to delimit links. I would have preferred angle brackets for links. Brackets are reserved delimiters in RFC3986 (etc) whereas angle brackets are recommended for delimiting URIs.

Markdown will let you mention a bare link, e.g. " rel="nofollow">http://google.com>, and will turn that in a hyperlink with the URL as the linking text.

Re: The Markdown Mindset

#33
post #21

Anybody use textile here?

I used it before I discovered Markdown. The syntax for code was very annoying: . But I still miss the easy distinction between emphasis (underscores) and strong emphasis (asterisks). Markdown makes both symbols behave identically, which I think is wasteful.

We use TextPattern as a lightweight CMS from time to time, and it's Textile. Code just requires "pre." at the start of the first line of code, like so:

    A *simple* example.
    
    pre. 10 print "hello"
    20 goto 10
    
    And that's that, except for @inline@ code.
Paste that into http://textile.thresholdstate.com/ with no leading spaces. If one is fluent in Textile, Markdown can feel limited in its access to readable HTML style indicators. For example, I appreciate the %(class)this is a styled span% feature.

I find Markdown best for generating documents/documentation, and Textile best for generating styled web copy.

Re: The Markdown Mindset

#34

I really dig Markdown. But this nasty voice inside my head is saying "5 years from now, you're gonna wish you just did this in troff." Or for better and worse, it will evolve into troff.

Well, apparently pandoc can convert Markdown into groff. I don't know if it's troff compatible or if it has diverged, though.

Re: The Markdown Mindset

#35
These are the benefits of LaTex - logical rather than physical structure. But LaYeX, strikingly beautiful though its output is, has not taken off outside computer science journal articles.

Two opposing points: (1) on reddit, I'll often check the markup result, going back and forth (esp checking URLs - probably less important for other writing), and that seems inefficient. I did the same with LaTeX; (2) when I read the text in the rendered format, I'll pick up different typos, perhaps because the line-spacing and font are different and so my eyes parse it differently (like that trick with "of" doubled at end and start of a line).

For a year, I used a homegrown markup language for uni notes. It was fun to use, seemed helpful, but I think was primarily self-indulgent. Maybe I should try it again - I'm currently using either plaintext for documentation (which isn't really clear enough); or open office Word (which takes forever to startup, doesn't feel accessible (can't just cat or head or tail or more or less or grep it), has non-vi keybindings and generally is a pain (though I complement their job of copying MS Word).

Finally - I'm kinda surprised at markdown's success (and it really is successful). I would expect WYSIWYG to be more user-friendly. I think one factor is that markup is optional in the context where it's been successful (like reddit). In other words, it may be "successful" because (1) it's not actually needed or used much (I mean, typos/grammos are endemic online, right?) (2) it has the gentlest possible learning curve if you do want to use it. Does this mean it would be terrible at more serious uses? Or that it is ideal to disrupt incumbent formatting methods? (disrupt defined: "initially worse at key features, but has features appealing to different users such as convenience/price/accessibility").

It would be interesting to measure the percentage of reddit comments that actually use any markdown at all. I think it would be very low, something like 1-2%

BTW: You had my vote at ZX81 is that wrong?

Re: The Markdown Mindset

#36

i'm going to do a shameless plug for my github project here because it's quite related but not large enough to dedicate an entire thread to it. it converts DOM > markdown on the client. https://github.com/leeoniya/reMarked.js the stated goal is to integrate into existing WYSIWYG html editors to produce markdown output. kind of like Markdownify, but on the client. yay markdown! :D

I ended up writing a Markdown plugin to a client-side WYSIWYG editor. I needed the ability to store formatted text in MS SQL without either uploaded a binary blob (.doc/.pdf) or using a WYSIWYG with HTML output.

Markdown is exactly what we needed but there weren't any good JS WYSIWYG editors available, so I hacked one together.

Re: The Markdown Mindset

#37
post #6

If you like markdown you will LOVE using pandoc. I can't stress how wonderful things have been since I moved to pandoc. http://johnmacfarlane.net/pandoc/

I love pandoc too, and there are three things that would make me absolutely giddy if they were added:

1) Proper reference support. In LaTeX you can use things like \ref{fig:foo} to insert autonumbers for things like Figure X and Table Y. (Which is awesome, because if you move a figure, you don't have to change all of your numbers around.) There's no Pandoc markdown equivalent, so this gets lost if I convert to e.g. HTML. I have to work around this with a script that looks for this LaTeX snippet and does the counters before passing to Pandoc.

2) Better footnote output for LaTeX. Right now, if you use a [^foo] footnote mark twice, you will get two \footnote{}'s in your LaTeX (and therefore a repeated footnote message in your output) instead of a \footnotemark for the second one.

3) Better metadata. Both Jekyll and MMD are so much more flexible about the metadata you add at the top of a document; Pandoc seems to think the only items I'll ever need are author, title, and date. If I could only add things like addresses, enclosures, salutation lines, and extra variables my templates could adjust to, I could produce more sensible templates for formats like business letters.

Re: The Markdown Mindset

#38
post #35

These are the benefits of LaTex - logical rather than physical structure. But LaYeX, strikingly beautiful though its output is, has not taken off outside computer science journal articles. Two opposing points: (1) on reddit, I'll often check the markup result, going back and forth (esp checking URLs - probably less important for other writing), and that seems inefficient. I did the same with LaTeX; (2) when I read th…

For Reddit, you should check out the Reddit Enhancement Suite[1]. It shows you a realtime preview of the post as it'll show up.

[1]: http://redditenhancementsuite.com/

Re: The Markdown Mindset

#39

I really dig Markdown. But this nasty voice inside my head is saying "5 years from now, you're gonna wish you just did this in troff." Or for better and worse, it will evolve into troff.

Well, apparently pandoc can convert Markdown into groff. I don't know if it's troff compatible or if it has diverged, though.

Actually, I'm more concerned with the Markdown syntax and not about how pandoc (nice tool btw) converts it. The issue I see is unchecked feature creep, especially with the variants of markdown we're starting to see.

Reluctantly, I agree that plain text documents are the way to go. I used to be a FrameMaker user.

Re: The Markdown Mindset

#40
post #20

Earlier quoted context omitted.

There are "extra" versions of Markdown that can be configured to respect literal line breaks. But if you rely on that, your text would not be compatible with other Markdown parsers. Markdown's default behavior of disregarding line breaks has two benefits: (1) you can keep your lines short without breaking paragraphs apart, and (2) putting each sentence (or long clause) in its own line plays very nicely with version c…

Yeah, respecting literal line breaks would break some things, but simply replacing the two spaces at the end of a line with something visible (maybe two underscores if that doesn't break something else) should work.

Pandoc's extended markdown allows you to use a backslash at the end of the line to indicate a line break. (Think of this as a backslash-escaped newline, if you want.)
Post reply on HN