Fixes #38: Refactor the MDX parser API