Fixing support for markdown extensions

Previous commit was stupid and did not allow multiple markdown extension
flags. This commit fixes that. One gotcha: it allows you to specify
extension flags on any output or input format, not just the supported
ones. I'll fix this in a future commit.