mdtable-pretty-printer is a plugin for Inkdrop

mdtable-pretty-printer is a plugin for Inkdrop which tidies markdown tables in your notes.

This is the first plugin I’ve written for Inkdrop, and was an interesting experience. Plugins are written in JavaScript, which I don’t write a lot of, and follow React-based patterns which I’m not very familiar with and I ended up having to revert my intended plugin structure (one file with the entrance point and the actual class doing the work in another) to just bundling everything in one file.

The markdown tidying is done by Ian McNaughton’s zero-dependency mdTablePrettyPrinter library, which worked great. It also powers his website https://www.mdtableprettyprinter.com/ which is what I’d been copy/pasting my tables into to tidy them previously.

I don’t recommend using my plugin, instead I recommend table-editor which is far more powerful and formats tables safely with fewer error edge cases than mine, and which I didn’t find until after I’d written my plugin!

Keeping up with the lizards

It used to be the case that I pored over Mozilla (and later Firefox) release notes. But I stopped sometime in 2004, around the point when I accepted that XUL development was too hard to be doing in my spare time and yes, Firefox was clearly better than IE at just about everything.

This means that I now miss all the cool announcements

http://webkit.org/specs/CSSVisualEffects/CSSTransforms.html

http://dev.w3.org/2006/webapi/selectors-api/#queryselector

http://www.dustindiaz.com/firefox-31-brings-good-stuff/

http://developer.mozilla.org/En/DOM/Document.querySelector

http://developer.mozilla.org/en/Firefox_3.1_for_developers

Javascript textile previews

After my original post about it, it’d probably be good to point out that Jeff Minard has taken the idea and run with it, introducing

  • h tag support
  • br tag support
  • proper html syntax (a few tags were being closed incorrectly.)
  • Various small fixes

Of course, have a Blogger-hosted blog I can’t make use of any of these oh-so-clever solutions (because of user recognition I think – otherwise I could just provide my own form), but it’s good to keep up with the wizards.