123 points · by chilijung · 8y ago · 54 comments
The different header sizes are immediately obvious without trying to find how many #'s there are. Monospace words and sections are immediately apparent without trying to figure out if i used backticks or apostrophes. And I don't want to "Preview", even if it's a live Preview. I want to see my fully formatted document as I type it without switching context.
On that note, one thing I wish _all_ markdown editors would pick up, and have only seen on StackOverflow, is the "Reference Style" links, where you can denote a link using something like [1], and then list the url below the text. I have never once, ever, needed to know and immediately see a full url while reading or editing text. Inline urls actively make editing and reviewing more difficult.
This is hidden by Dropbox Paper with an actual link as expected, but their export still has inline urls, which is standard, of course, but I don't agree with the standard.
Just to clarify, inline urls are one of the two standard [Markdown link styles](https://daringfireball.net/projects/markdown/syntax#link).
The other is [reference-style][ref].
[ref]: https://daringfireball.net/projects/markdown/syntax#link
I'm personally dubious on live preview as well, depending on the use case. I usually don't find it very useful - unless saving/publishing is some sort of final, irreversible action (submitting resumes to jobs, etc.) :)
OTOH, novice users may like the markdown being obscured, so maybe it's all just a matter of taste.
Non-programmers, really. Most people who write in Paper see the markdown as a shortcut, not the underlying truth. This sort of interface for Reddit comments would lower the barrier to entry fairly substantially.
Leaving `#` characters at the start of headings would annoy people more than the ¶ marks in Word. "Why is there this gunk in my text? How do I get rid of it?"
I thought you wanted to type markdown, and then have it transform as soon as it had enough context to do so. Which sounds like the worst of all worlds.
Now that I re-read your comment I understand that I actually agree with you 100%.
See: org-mode.
https://github.com/outline/rich-markdown-editor
Anyway, If you're interested in an open source team wiki built on a very similar editor then check out the underling project, https://github.com/outline/outline
Also, I like the way your dashboard looks like (judging by the screenshot on your website).
I’ve been relying extensively on it for a quite big project, it’s been a pleasure to use. Especially if you need to change the editor’s content programmatically.
The main issue is how to properly associated each html element to a node type, and fit within the core plugin normalization. This is difficult for having to deal with arbitrary html coming from all the different kinds of email client that choose to represent the html structure in their own unique way. However, this is also where SlateJS shines I believe, as you can just normalize all the different html formats into a single representation.
strong, b, font[style="font-weight:*"], etc => Mark Bold
The library has probably changed quite a bit (last I used it was v0.21), so I don't know if my issues are even there anymore, or have changed in some way since.
Overall though, SlateJS is a really neat project, and really fairly simple, and allows for some awesome things to happen in text editors that previous I would believe to be fairly complicated. This is all thanks to the fact that nodes in the slate state can be rendered as rich ReactJS components.
A simple example of this for our use cases was around using template variables in an html email template. I never got around to actually doing this bit, but a variable could be it's own unique node type in the slate state, and allow us to inject a special react component that would make working with the variables much nicer for our users. In the production editor at the time, these variables were just handle bars `{{ first_name }}`, which a lot of customers accidentally would mess up as they had to write out the syntax.
With SlateJS the vision was to simply render a Variable component that would serialize back down into handle bars, or later down the road take the json serialization of the slate state and render that into our own html for sending out.
I really like the patterns SlateJS uses, and I'm excited for any future projects that will allow me to work with it again.
For casual editing though, I still prefer working with a raw markdown file with a live preview. Simply because I feel like I have full control over styling. I can remove bold from text without removing the text itself.
For reference, I'm on a 2012 rMBP with a 2.3 Ghz (turbos up to 3 Ghz when I'm typing) quad core i7.
I use Slate and have many of the same features and some additional ones and it is more responsive so if you use this project in your code, you may not see the lag since you probably wouldn't have a live HTML view.
Markdown was designed to be really, really, really easy to write. But it was designed by techies based on their own experience mostly. Maybe there's a better, simpler MarkPopular that can be used by a wider user base.
- Links and images. ![]() and []() are something you'll see people consistently reverse.
- Nesting markdown in a list, like images and codeblocks. And forgetting that two newlines will end the list which can create an unobvious result in the live preview.
Markdown is easy to write (unlike BBCode) but not always simple to remember, format, or reason about with its strict whitespace rules (unlike BBCode).
I don't appear to be able to put more than one formatted section in a paragraph. The first one works and the second doesn't.
Here's an example with two paragraphs, firstly with bold followed by italic and second vice versa.
https://i.imgur.com/QKEz7qM.png
Edit. Also, it appears to add unintended spaces around those formatted words (see `<em> dog</em>`). And I wish HN supported inline code snippets.
It would be nice to be able to configure a certain syntax and then have the editor be aware of that syntax. Most editors out there currently only work with a fixed syntax or a fixed set of syntaxes.
I see this exact grammatical tick, adding a comma where one shouldn't be after a noun clause, all the time. Maybe it's native speakers of some other specific language that tend to do it? Which one?
Sentences like the one you quoted have a similar structure as those deconstructed in ReadsLikeGerman[1]. The "that" feels like the equivalent of "der"/"die"/"das" and I have the urge to place a comma in front of it.
[1]: http://wiki.c2.com/?ReadsLikeGerman
edit: rephrased for clarity
It's hilarious that you had a very similar tic in this response, only with a hyphen instead of the comma... :-)
In fact "A markdown editor -- that allows you to edit live." would be correct, though with a slightly different meaning, sorta treating the latter clause as a surprising bonus, as though you would expect the opposite if you only heard the words "a markdown editor".