News for hackers. Stuff that matters.
Re:Why Markdown Is Not My Favourite Language (2012) by pmoriarty on Saturday November 29, 2014 @01:58PM (#8674681)
org-mode in emacs supports tables, and it's ASCII-based.

Here's an example, displayed exactly how you would see it marked up in org-mode syntax in emacs:

  |-----+-------|
  | Key | Value |
  |-----+-------|
  |  00 | foo   |
  |  01 | bar   |
  |-----+-------|
org-mode can export to HTML, and many other formats.
Re:Why Markdown Is Not My Favourite Language (2012) by josteink on Saturday November 29, 2014 @02:15PM (#8674717)
Org-mode is a beast. A fantastic beast, much like Emacs itself. You dive in, but there's always more to learn. Some things may be for you and some things don't. Everyone should give it a try.

A little known fact, even among most org-users: Github can render org-mode files to HTML directly if checked into a repo, thus you can write your README files as org-files.

Shameless example: https://github.com/josteink/csharp-mode/blob/master/README.o...

This alone was enough to make me drop Markdown as my go-to format for semi-formatted text-files.

A subtle killer feature here is org-babel. You can embed proper code in your text-files and have your editor (at least Emacs) understand them as such. Which makes it excellent for writing technical documentation for projects where code is involved.

Re:Why Markdown Is Not My Favourite Language (2012) by TazeTSchnitzel on Saturday November 29, 2014 @04:24PM (#8675133)
>Github can render org-mode files to HTML directly if checked into a repo

They also support ASCIIDoc, ReST, MediaWiki markup, Creole, etc.

See: https://github.com/github/markup

Re:Why Markdown Is Not My Favourite Language (2012) by donniezazen on Sunday November 30, 2014 @03:59AM (#8676391)
I really wish that other services would be like this. You enter text in a few popular markup languages and not one specific language.
Re:Why Markdown Is Not My Favourite Language (2012) by pyre on Saturday November 29, 2014 @02:45PM (#8674826)
> A little known fact, even among most org-users: Github can render > org-mode files to HTML directly if checked into a repo, thus you can > write your README files as org-files.

I recently stumbled across the tidbit. The Ruby library Github uses to generate it though isn't 100% though. If you want to use org-mode properties for style customization of html output your SOL.

Original project:

https://github.com/bdewey/org-ruby

  Currently, you cannot do much to customize the conversion. The
  supplied textile conversion is optimized for extracting “content”
  from the orgfile as opposed to “metadata.”
It does say that developement has moved to:

https://github.com/wallyqs/org-ruby

Which has no such note, but doesn't say anything about supporting it.

Re:Why Markdown Is Not My Favourite Language (2012) by MarcScott on Saturday November 29, 2014 @04:23PM (#8675128)
I never create tables in HTML any more. If I ever want an HTML table, I create it in org-mode and export it. It's just so much faster to create what you want.
Re:Why Markdown Is Not My Favourite Language (2012) by baddox on Saturday November 29, 2014 @02:31PM (#8674777)
org-mode tables are great, but they're only easy to type because org-mode does the dynamic resizing and border drawing for you. Markdown is supposed to be simple to type in any plain text editor.
Re:Why Markdown Is Not My Favourite Language (2012) by breuleux on Saturday November 29, 2014 @03:38PM (#8674993)
You can still have simpler table syntax that's nice to read but easier to maintain. For my own markup language (http://breuleux.net/quaint_demo/) I implemented this syntax:

    + Name    + Occupation
    | Alice   | Accountant
    | Bob     | Baker
    | Charles | Car salesman
Headers are easier to make and the last column does not require a trailing marker. It's still some work to align columns other than the last, but that's not a requirement and I'd still much rather have a non-aligned ASCII table than nothing at all.
Re:Why Markdown Is Not My Favourite Language (2012) by baddox on Saturday November 29, 2014 @04:01PM (#8675059)
Yeah, the alignment of columns is a big issue. If you have 100 rows, and add another with a cell that is longer than any other cell in that column, you've got to either edit 100 rows or live with a much harder to read table.
Re:Why Markdown Is Not My Favourite Language (2012) by medgno on Saturday November 29, 2014 @07:08PM (#8675491)
Or use a text editor that supports region editing. I agree with you, but this isn't a complete failing of that syntax.
Re:Why Markdown Is Not My Favourite Language (2012) by tedunangst on Saturday November 29, 2014 @03:08PM (#8674897)
What happens when I add a new value that's "much longer"?
Re:Why Markdown Is Not My Favourite Language (2012) by pmoriarty on Saturday November 29, 2014 @03:21PM (#8674941)
At first,

  |-----+-------|
  | Key | Value |
  |-----+-------|
  |  00 | foo   |
  |  01 | bar   |
  |-----+-------|
becomes

  |-----+-------|
  | Key | Value |
  |-----+-------|
  |  00 | foo   |
  |  01 | bar   |
  |  02 | much longer |
  |-----+-------|
but as soon as I hit TAB, it turns in to:

  |-----+-------------|
  | Key | Value       |
  |-----+-------------|
  |  00 | foo         |
  |  01 | bar         |
  |  02 | much longer |
  |-----+-------------|
There's probably a way to make org-mode dynamically resize tables as you type, without requiring the use of TAB, but I'm not sure if that's always desirable.
Re:Why Markdown Is Not My Favourite Language (2012) by tedunangst on Saturday November 29, 2014 @06:01PM (#8675379)
OK. I think where I'm going is that for anyone who doesn't use emacs org-mode, ASCII tables are a major PITA to edit. I didn't know if emacs used a different underlying syntax (that markdown could borrow), but it doesn't.
Re:Why Markdown Is Not My Favourite Language (2012) by wtbob on Saturday November 29, 2014 @07:37PM (#8675563)
Well, anything is a major PITA for someone who doesn't use emacs…

More seriously, ASCII tables are always a major pain to edit, without the proper tools (like emacs—and I'd not be at all surprised if there's something for vim and/or Sublime Text too). That's no reason to avoid them; they are useful.

Re:Why Markdown Is Not My Favourite Language (2012) by LukeShu on Saturday November 29, 2014 @04:04PM (#8675077)
M-q also resizes the table; I mention this because M-q is universally "reflow whatever is under my cursor."