Tweak ruby script for json to markdown conversion