attempt to automate pandoc type definition