title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
x
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
|
Saturday, April 02, 2016 | |
When you're writing a Markdown editor, you have to be worried about Markdown formatting in two distinct, and not always especially related, ways. The first is that you have to format the Markdown into html markup correctly. That's a no-brainer requirement, and there are plenty of libraries to help you convert raw Markdown to html. That said, there are extensions to Markdown that sometimes require quite a bit more discussion than you'd expect. If your favorite Markdown parsing library doesn't include these extensions, do you write them yourself? Change parsers? Etc, etc. Typical library evaluation stuff. The second consideration, however, is how you make your users' Markdown input more graceful.Take the following example. Say I've got this text...
... and I have the cursor exactly at the "pipe" character -- | -- what should happen if I pasted in my clipboard's contents as a quotation (Ctrl-Shift-V in my editor)? There are a number of choices. The pasted quotation could read...
Or they might prefer another newline before the quote so that you had the quoted material nicely set off...
Or they might like to have that quote wrapped so that it's not one giant ugly line with a single greater than (>) in front of it [1]...
(Or they might like wrapping but only one newline (so no full empty lines) between the quote setup and the quote itself...) Curiously, those all render to the same html (which I'm setting off with an extra
When you're trying to minimize application preferences, you really really want one of these options to be the a priori best.[2] Because otherwise you're selecting one for all of your users and knowing everyone who prefers another option enough to notice is going to, if you're lucky, let you know about it. [1] To the point someone might've written an insanely ugly app to do just that for text-unfriendly Outlook. Labels: coding, features, indie, markdown, markupdown, style posted by ruffin at 4/02/2016 03:14:00 PM |
|
| |
All posts can be accessed here: Just the last year o' posts: |
||||||||||||||||||||||
|