code: function shouldFormatNode(node, profile) {
  	if (!profile.get('format')) {
  		return false;
  	}
  
  	if (node.parent.isTextOnly
  		&& node.parent.children.length === 1
  		&& parseFields(node.parent.value).fields.length) {
  		// Edge case: do not format the only child of text-only node,
  		// but only if parent contains fields
  		return false;
  	}
  
  	return isInline(node, profile) ? shouldFormatInline(node, profile) : true;
  }
docs: Check if given node should be formatted
  @param  {Node} node
  @param  {Profile} profile
  @return {Boolean}