Why I switched to Markdown and iA Writer for writing
Moving away from Microsoft Word and messy WYSIWYG editors to plain-text Markdown for full control over content and clean HTML, plus why iA Writer helps me stay focused.
If you have ever copied an article from Microsoft Word and pasted it into a web CMS, you already know the mess that comes out on the other side. Empty <span> tags, inline style="font-family: Calibri" rules, broken line breaks and random <div> wrappers everywhere. Even web WYSIWYG editors like TinyMCE hide the real HTML markup until something breaks in the layout and you have to switch to the HTML tab to clean it up by hand.
Over the last few months I stopped writing drafts in Word and WYSIWYG boxes and moved almost everything to Markdown.
Full control over your text and clean HTML
Markdown was created by John Gruber back in 2004, and the idea is very simple: you write in plain text using a few easy-to-read symbols, and a parser converts it into clean, standard HTML.
What I like most about it is that you stay in complete control of your data. There is no proprietary .docx container, no hidden formatting that breaks when you move a paragraph, and no mystery markup behind a toolbar button. Every heading, link or list is right there in plain sight, and because it is just a .txt or .md file, you will still be able to open and read it twenty years from now on any computer.
Compare what happens when you paste a simple heading and a bold link from Word into a rich text editor:
<p class="MsoNormal"><b><span style="font-size:14.0pt;font-family:Calibri">
Project notes</span></b></p>
<p class="MsoNormal">Check the <a href="http://example.com"><span style="color:windowtext">
<b>final spec</b></span></a> before Friday.</p>
With Markdown, you just write normal text:
## Project notes
Check the **[final spec](http://example.com)** before Friday.
And the HTML that comes out is clean every single time:
<h2>Project notes</h2>
<p>Check the <strong><a href="http://example.com">final spec</a></strong> before Friday.</p>
The syntax I use every day
It takes maybe ten minutes to learn almost everything you need for blog posts, client documentation and project notes:
# Main heading
## Section heading
Regular paragraph with *italic*, **bold** and `inline code`.
- First item
- Second item
- Third item
> A short quote from a client or an article.
Read more on [Daring Fireball](https://daringfireball.net/projects/markdown/).
One limitation of John Gruber's original 2004 syntax is that it did not include tables. Thankfully, extensions like PHP Markdown Extra and MultiMarkdown solved that with a readable pipe syntax that works in most modern parsers and editors:
| Format | Readable as plain text | Clean HTML output |
| -------- | ---------------------- | ----------------- |
| Word | No | No |
| WYSIWYG | No | Rarely |
| Markdown | Yes | Yes |
Even before it gets converted into a <table>, you can read it straight in your text file without squinting through <tr> and <td> tags.
Staying focused with iA Writer
You can write Markdown in any text editor, of course, but pairing it with iA Writer by Information Architects is what really made the habit stick for me.
When you open Word or Pages, half the screen is covered in ribbons, font dropdowns, rulers and alignment icons. You end up wasting twenty minutes picking a typeface and fiddling with margins before you have even written two paragraphs.
iA Writer strips all of that away. You get a single clean page, one fixed monospace font, zero settings to tweak, and built-in Markdown preview and HTML export. My favorite part is Focus Mode, which fades out the rest of the document and highlights only the sentence you are typing right now. With the Mac app and the updated iPhone and iPad versions syncing over iCloud, I can start an article on my laptop and finish editing it on the train without fighting formatting menus.
Writing in plain text feels a bit strange for the first couple of days if you are used to seeing formatted pages as you type. Once you get used to it though, having clean markup, portable files and zero distractions while you write makes a big difference.