rules: process links and #?{}