Live data from Hacker News

The Markdown Mindset

hiltmon.com

21–30 of 52 posts

Re: The Markdown Mindset

#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.

Re: The Markdown Mindset

#22
post #17

Earlier quoted context omitted.

My favorite thing about Pandoc is its LaTeX transparency. You can just throw some TeX in there and it will pass it through. Of course doing this bypasses the possibility of easily converting to HTML, but I've started many research papers writing in Markdown, which has less, let's say, "markup overhead" than LaTeX, previewing the results using pandoc's markdown2pdf utility. Then later when I'm ready to use the proper…

With a little script? Have you seen the recent pandoc+beamer integration?

To elaborate: in pandoc 1.9 you can just do:

    pandoc -t beamer -o presentation.pdf

Re: The Markdown Mindset

#23
post #19
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.

I think Markdown avoids angle brackets because angle brackets are frequently used for inline HTML. Sure, Markdown could look at the content of each pair of brackets and try to figure out whether it's a link or a valid HTML tag, but that would introduce a lot of complexity and it won't always work given the diversity of tags and URL schemes.

Since angle brackets are used for "automatic links" in markdown (http://daringfireball.net/projects/markdown/syntax#autolink), a markdown processor already has to look at the contents.

Re: The Markdown Mindset

#24
post #20

Markdown and Restructured Text are pretty nice. One Markdown annoyance is having to use two spaces at the end of a line to indicate a line break. In some text editors, you can't see the spaces at the end of the line so when you visually scan your Markdown you don't see the line breaks.

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.

Re: The Markdown Mindset

#26
post #3

My only problem is that I have no way to do easy footnoting. I had to add my own special HTML code at the bottom of the page, manually verify the link, and so on. Too much work.

[deleted]

Re: The Markdown Mindset

#27

Markdown and Restructured Text are pretty nice. One Markdown annoyance is having to use two spaces at the end of a line to indicate a line break. In some text editors, you can't see the spaces at the end of the line so when you visually scan your Markdown you don't see the line breaks.

One of the nice things about Markdown and reStructuredText is that there is actually a substantial overlap in their markup formatting - it is not too difficult to write documents in the common subset, e.g. this brief guide that I wrote up documenting the common subset: http://gist.github.com/1855764 (you can see the same file interpreted as Markdown and reStructuredText there).

My biggest complaint with the various lightweight/plaintext markup formats is the sheer variety and incompatibility of their markup syntax. Pandoc goes a long way to being able to convert the more popular ones easily, but it would have been nice if there had not been so much gratuitous re-invention of the wheel. It's kind of sad that the MultiMarkdown table format is incompatible with the tables in reStructuredText.

Re: The Markdown Mindset

#28
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

Re: The Markdown Mindset

#29

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

We've also installed markdown into Hackful (the HN for Europe) - it's a bit hit and miss though, especially with line breaks http://Hackful.com

Re: The Markdown Mindset

#30
post #29

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

We've also installed markdown into Hackful (the HN for Europe) - it's a bit hit and miss though, especially with line breaks http://Hackful.com

yes, line breaks are oddballs. it was especially fun in my testing since every markdown > html converter treats whitespace differently and it's possible to have many extra text nodes as well as leading trailing whitespace, etc. makes testing a faithful round trip very difficult indeed. and then there are different flavors to account for...
Post reply on HN