philwilson.org

mdtable-pretty-printer is a plugin for Inkdrop

10 February, 2024

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!

See other posts tagged with general inkdrop javascript and all posts made in February 2024.