News for hackers. Stuff that matters.
Re:RFC 7764 – Guidance on Markdown by verandaguy on Wednesday December 14, 2016 @12:06PM (#13177512)
I don't have any strong opinion about YAML (or YAML Front Matter), having never used it much, but at a glance it seems reasonable to focus on writing content in.

On a sidenote:

    Sure, the YAML and Markdown specs could be more strict but right now browsers are very tolerant of malformed HTML.
This wouldn't be possible without an extremely well-defined HTML spec :) For example, if I write the following in a hypothetical browser-parsed Markdown document:

     _Hello!_
     *Hello!*
     **Hello!**
Which one should show up as bold? What about italic? Which one should just be surrounded by {1,2} asterisks?

Conversely, if I have:

     <ul>
         <li>Hello</li>
         <li>World!
     </ul>
Many browsers can determine (non-trivially, and not always, granted) that there's an unclosed `<li>` tag inside a closed `<ul>` environment and work with that. It's generally a different class of problems, though.
Re:RFC 7764 – Guidance on Markdown by dsp1234 on Wednesday December 14, 2016 @12:20PM (#13177681)
(non-trivially, and not always, granted)

Note that <li> example is perfectly valid, and will be parsed correctly by any html5 capable parser. Per the html5 spec, the closing tag on an <li> element is optional.[0]

[0] - https://html.spec.whatwg.org/#optional-tags

An li element's end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.

Re:RFC 7764 – Guidance on Markdown by verandaguy on Wednesday December 14, 2016 @12:32PM (#13177826)
Fair enough, TIL. I'd imagine it's much less valid if the missing closing `</li>` is on the first line, though.
Re:RFC 7764 – Guidance on Markdown by mbrock on Wednesday December 14, 2016 @01:05PM (#13178152)
No, you can write the entire list without any </li> tags and it's perfectly fine. You also generally don't need to close your <p> tags to start a new paragraph, because paragraphs don't nest inside each other.
Re:RFC 7764 – Guidance on Markdown by dsp1234 on Wednesday December 14, 2016 @02:50PM (#13179085)
This is a perfectly valid html5 document:

  <!doctype html>
  <title></title>
  <ul>
    <li>item1
    <li>item2
  </ul>
Re:RFC 7764 – Guidance on Markdown by nicky0 on Wednesday December 14, 2016 @01:47PM (#13178546)
First two lines are italic, last one is bold. I'm not sure the point you are making, as all three are straightforward examples of unambiguous Markdown. (There are plenty of ambiguous cases you could have picked...)
Re:RFC 7764 – Guidance on Markdown by nitrogen on Wednesday December 14, 2016 @07:39PM (#13181221)
IIRC Slack does bold with single asterisks.
Re:RFC 7764 – Guidance on Markdown by nicky0 on Monday December 19, 2016 @03:41AM (#13210267)
But slack doesn't claim to use Markdown.

> Though we understand many people would love to use Markdown in Slack messages, we have no plans to support it. Our message formatting is similar to other popular services like Skype and Google Talk, and is intended for a majority of our users who are unfamiliar with Markdown. However, we'll keep it in mind for the future.

https://get.slack.help/hc/en-us/articles/202288908-Format-yo...

Re:RFC 7764 – Guidance on Markdown by carussell on Wednesday December 14, 2016 @11:24PM (#13182398)
> Which one should show up as bold? What about italic?

Markdown has no notion of italic and bold styling, only semantics for emphasis and strong emphasis.