-- flash an error and stop execution, they are only allowed when there are only 2 parts
error(string.format("%s\nInvalid reference: 'below' and 'above' are only allowed within the same file, for custom references that have the (Table|Figure)+++(below|above) format.",pandoc.utils.stringify(child)))
error(string.format("%s\nInvalid reference: 'below' and 'above' are only allowed within the same file, for custom references that have the (Table|Figure)+++(below|above)[+++(below|above)]+ format. You can't mix up below and after in the same link.",pandoc.utils.stringify(child)))