rules must reference this.rules in renderInline