News for hackers. Stuff that matters.
Re:MarkdownEditing – Markdown package for Sublime Text by themodelplumber on Thursday April 10, 2014 @03:11PM (#7568962)
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by LibreOffice - see http://cgit.freedesktop.org/libreoffice/core/tree/filter/sou... for the code.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xml:lang="en-US">- no title specified</title><meta name="DCTERMS.title" content="" xml:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2014-04-10T12:09:56.750408000" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2014-04-10T12:10:53.104205000" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.provenance" content="" xml:lang="en-US"/><meta name="DCTERMS.subject" content="," xml:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; font-family:Liberation Serif; writing-mode:page; } .T1 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> .Endnote_20_Symbol .Footnote_20_Symbol { } </style></head><body dir="ltr" style="max-width:8.5in;margin-top:0.7874in; margin-bottom:0.7874in; margin-left:0.7874in; margin-right:0.7874in; writing-mode:lr-tb; "><p class="P1">I don't get the point either. Plus, Markdown has its <span class="T1">own</span> set of annoying rules. Most software will already export to HTML, too, like LibreOffice.</p></body></html>
Re:MarkdownEditing – Markdown package for Sublime Text by VikingCoder on Thursday April 10, 2014 @03:48PM (#7569205)
What's the markdown equivalent of that? And then, more importantly, what's the HTML equivalent of that markdown? Clearly not that complicated.

My point is, what you're trying to accomplish with markdown is just as easy to accomplish with good old-fashioned HTML.

If you want nice CSS, define it and tell your users how to use it.

Rather than running everything through markdown, run it through an XHTML whitelist.

You don't write an entire page in markdown, generally - you just write a fragment. So, let me write an HTML fragment, and you can wrap it with the headers you need to.

Re:MarkdownEditing – Markdown package for Sublime Text by psychometry on Thursday April 10, 2014 @03:53PM (#7569247)
No, Markdown is more concise than HTML in basically every case.

You cannot expect users to know HTML and CSS to comment on your website.

Re:MarkdownEditing – Markdown package for Sublime Text by VikingCoder on Thursday April 10, 2014 @03:58PM (#7569282)
Depends entirely on the website.

Hacker News could probably expect a large majority of their users to be able to handle it. Maybe with complaints, but handle it.

I had a personal Wiki which was based off of some open source Wiki. The first thing I did was removed Markdown, because it was completely pointless for me. This was 14 years ago. All I wanted was a web interface to edit HTML and view it later. For the most part, I just had lists and links, and sometimes notes and status reports.

Mainly, I could go to localhost/psychometry in my browser bar, and get immediately presented with "This page doesn't exist, type in the textbox below to write the HTML for the page". It was super handy.

Re:MarkdownEditing – Markdown package for Sublime Text by lelandbatey on Thursday April 10, 2014 @04:18PM (#7569422)
Markdown was invented 10 years ago[0]. Don't know what you where using at the time, but it wasn't (exactly) markdown.

[0] - http://en.wikipedia.org/wiki/Markdown

Re:MarkdownEditing – Markdown package for Sublime Text by bowerbird on Thursday April 10, 2014 @06:37PM (#7570149)
markdown was _released_ 10 years ago, that's true.

but it's not entirely accurate to say it was "invented".

let me be more clear: markdown was _not_ "invented".

gruber was blogging with movable type, which was using the _textile_ light-markup system created by dean allen.

so he didn't even come up with the _idea_ himself!

of course, neither did allen. light-markup systems were _the_zeitgeist_ around the turn of the century:

* restructured-text was adopted for python documentation.

(.rst -wikipedia.org/wiki/restructuredtext -- david goodger)

* asciidoc had a big list of org-users. (still does.)

(asciidoc -- wikipedia.org/wiki/asciidoc -- stuart rackham)

* and there were other early entrants that are still alive.

(txt2tags -- wikipedia.org/wiki/txt2tags -- txt2tags team)

and dean allen's textile had a fairly solid reach by 2004:

* textile -- wikipedia.org/wiki/textpattern -- dean allen

* texy -- code.google.com/p/texy-- david grudl

* redcloth -- rubygems.org/gems/RedCloth/versions -- garber

* textpattern -- textpattern.com -- dean allen

but the first that i'd call "light markup" was "setext":

* 1992 -- http://en.wikipedia.org/wiki/setext -- ian feldman

"setext" was short for "structured e-text", and yes, that's why "restructured-text" put the "re" in front of its name, because they were "redoing" the structured-e-text of setext.

but even ian feldman would tell you (if you could find him) that he was merely leveraging the well-known conventions of the fledging internet at the time, such as usenet listserves.

"light-markup" is something that _the_masses_ "invented".

-bowerbird

Re:MarkdownEditing – Markdown package for Sublime Text by VikingCoder on Thursday April 10, 2014 @04:33PM (#7569511)
Hmm, it was some C++ code someone had made based off of MoinMoin, and it had something like Markdown. Specifically camel-casing being automatic links, I remember wanting to get rid of.