much improved format parsing. adds support for new [$ url $] linktype