fixes #2 by making markdown directive null-safe