Preprocessor for including inline diagrams in Haddock documentation