News for hackers. Stuff that matters.
Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by rntz on Tuesday December 20, 2016 @01:11PM (#13222344)
I tried to switch from markdown.pl to Pandoc and encountered some problems, one of which remains an open issue (https://github.com/jgm/pandoc/issues/1841): https://twitter.com/arntzenius/status/745946799836381184

A telling comment on that github issue is "Actually, it's a bit unclear what the behavior should be." I think the real problem is the idea of "a default Markdown engine" is pretty impossible when Markdown doesn't even have a formal spec. Complex human-readable formats without a spec are never gonna be compatible between different implementations without extraordinary effort. (Hence the http://commonmark.org/ effort, which I applaud, but doesn't seem to have a 1.0 spec out yet.)

Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by geofft on Tuesday December 20, 2016 @01:33PM (#13222549)
That's sort of convincing me that Markdown + arbitrary HTML is a fundamentally unstable idea. What's the use case for it? GitHub allows a subset of HTML tags; sites like Reddit allow none.

I mean, I use Pelican's Markdown support in my own blog, but I wouldn't be unhappy about having to use <i> instead of underscores.

Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by rntz on Tuesday December 20, 2016 @01:43PM (#13222633)
I use markdown for writing blog posts, and I need arbitrary HTML all the time. For tables; or for custom syntax highlighting; for drop-down menus that let readers choose what PL they want to see examples in (http://www.rntz.net/post/2016-06-06-not-everything-is-an-exp... ); to put the numbers on section headings into the left-margin; etc, etc.

Basically, markdown has (at least) two use-cases:

1. A safe (if you do HTML sanitization properly) way to let people mark-up their input on web comment sites like HN, StackOverflow, etc. This is probably the most common use-case.

2. A web authoring tool. This was the intended use-case.

Supporting arbitrary HTML is absolutely inadmissible for (1); not having arbitrary HTML is basically inexcusable for (2). And yeah, I could write the posts in straight HTML, but honestly that's a pain. Why shouldn't there be a tool that makes writing styled-text-with-lists-and-headings easy but lets me drop down to HTML when I need to?

Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by geofft on Tuesday December 20, 2016 @02:02PM (#13222811)
Because intermixing Markdown and HTML is ambiguous, and if you're authoring HTML, you clearly know HTML already?

I'm not actually sure I believe this yet. But I think I'd see a lot more use case for something that lets me do a very tiny amount of things, maybe just headings and bold and italic, and avoids not only ambiguity but any risk of ambiguity.

It just feels like we've reinvented HoTMetaL (https://support.novell.com/techcenter/articles/img/ana199609...) but with bonus ambiguity.

Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by tannhaeuser on Tuesday December 20, 2016 @03:19PM (#13223548)
Are you saying you shouldn't use HTML with markdown? Markdown was explicitly designed not to cover each and everything HTML, and so that you could fallback to HTML; it's kind of the entire point of markdown (or have I misunderstood you?).
Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by rntz on Wednesday December 21, 2016 @03:04AM (#13227556)
> But I think I'd see a lot more use case for something that lets me do a very tiny amount of things, maybe just headings and bold and italic, and avoids not only ambiguity but any risk of ambiguity.

When you build that, let me know. Until then I'll be over here, using a Perl script from 2004 that still works just fine.

Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by alexbecker on Tuesday December 20, 2016 @03:18PM (#13223540)
There's an easy compromise between (1) and (2): configurable bleaching.

I also use markdown for writing blog posts, and have a lot of the same pain points. I have been working on an extended version of markdown (https://github.com/alexbecker/blogdown) to fix this.

Re:Mdmath – LaTeX Math for Markdown inside of Visual Studio ... by nerdponx on Tuesday December 20, 2016 @05:05PM (#13224579)
AFAIK the author of Pandoc is also a CommonMark core contributor.