add paragraphFn option to control the type of React.DOM component output