typora is a great wysiwyg Markdown editor that supports Jekyll’s front matter.

You can add custom themes and styles, so it’s easy to get a real sense of what your blog post will look like, once your own site styles are applied.

It’s got an absolute raft of features, but comes with a really distraction-free writing interface which I find much more useful than a text editor when writing longer Markdown pieces, or when I want to go from a rough draft to proofing a finished article.

It can do nice things like display images relative to your posts, and does it in a way that’s compatible with both your local filesystem and the eventual URL on your website. For instance, here’s a screenshot of this article, written in typora, showing an earlier version of this article with a screenshot 🤯, but before I’d published it (or even used jekyll’s --drafts option).

Screengrab of typora showing this blog postThe image displays locally in typora, and will also display on my website, just using the markdown ![screengrab of typora showing this blog post](/images/typora-and-jekyll/typora.png) because of the typora-root-url front matter entry. Nice!

The typora-root-url entry has a subfolder path ../, because when you’re viewing the article in typora, the document is saved in your in your _drafts or _posts folder and the images are found underneath ../images.

This means you can drag and drop images into your typora document, which suits my screengrab, write, screengrab, write workflow. You don’t need to pre-save the images or faff around moving them to the correct folder before adding them with markdown. I’ve got my typora image preferences set to save images into the jekyll images folder, and then into a subfolder named after the typora document I’m working on, which means all the images for a specific post are kept nicely together.

Screenshot 2021-01-17 at 17.40.32

Adding that screenshot with drag and drop, looks like this:

You can drag and drop videos, just like the one above in the same way, but you will need to alter the path, but you do get an interface for that in typora - hover over the movie, toggle to html and alter its path.