improve check for markdown library