refactored for making use or worker-docverter for markdown conversion