Correctly generate a type for markdown blocks
Take correct file path, even if module name is not given