this version stores output from marked instead of innerhtml