a quick refactoring to move the markdown content class into its own file and share file name processing