using markdown instead of html for graphs