Need someone to lead product management at your software company? I create software for people that create software and I'm looking for my next opportunity. Check out my resume and get in touch.

This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.

Markdown for MT fix

Freshness Warning
This blog post is over 18 years old. It's possible that the information you read below isn't current and the links no longer work.

I’ve gotten in the habit of writing everything in Markdown. Documents I write are done in Markdown first, and if I need to send a "pretty" version to someone, it get’s turned into HTML and copied into OpenOffice.org. Most of the time the OO.o version isn’t even saved. There’s a long list of advantages to this, but that’s another post for another time.

I’d tried writing blog entries in Markdown using the Markdown plugin for Movable Type, but on entries without an Extended Entry, my "Read more" link appeared anyway, as if there was something in the extended entry anyway.

Today I got around to looking into it. When Markdown is done processing the text, it takes the resulting output and adds a newline (\n) to it. If the text is empty, it still gets a newline appended.

The fix was simple. If the text is empty, then just return it before doing any Markdown processing. Here’s a patch:

--- Markdown.pl 2004-12-14 22:57:42.000000000 -0800
+++ Markdown-fixed.pl   2006-02-17 11:33:02.000000000 -0800
@@ -231,6 +231,8 @@
 # and <img> tags get encoded.
 #
        my $text = shift;
+       return $text
+               if $text eq '';

        # Clear the global hashes. If we don’t clear these, you get conflicts
        # from other articles when generating a page which contains more than

Recently Written

A Framework for Scaling product teams
Oct 9: The people, processes, and systems that make up a product organization change radically as you go through the stages of a company. This framework will guide that scaling.
My Networked Webcam Setup
Sep 25: A writeup of my network-powered conference call camera setup.
Roadmap Outcomes, not Features
Sep 4: Drive success by roadmapping the outcomes you'll create instead of the features you'll deliver.
Different roadmaps for different folks
Sep 2: The key to effective roadmapping? Different views for different needs.
Micromanaging and competence
Jul 2: Providing feedback or instruction can be seen as micromanagement unless you provide context.
My productivity operating system
Jun 24: A framework for super-charging productivity on the things that matter.
Great product managers own the outcomes
May 14: Being a product manager means never having to say, "that's not my job."
Too Big To Fail
Apr 9: When a company piles resources on a new product idea, it doesn't have room to fail. But failing is an important part of innovation. If you can't let it fail, it can't succeed.

Older...

What I'm Reading