fixed markdown scope parsing