code: function getInlinePlugins(text, pattern, availablePlugins) {
    var match = text.match(pattern);
    // Return null if not match to make decisions based on it
    if (!match) return null;
    // Capture group [1] for plugins will be empty if no plugins specified
    if (!match[1]) return [];
  
    var inlinePlugins = match[1].replace(/\s/g, '').split(',');
  
    var validInlinePlugins = inlinePlugins.filter(function (plugin) {
      // Remove not registered plugins
      return availablePlugins.indexOf(plugin) > -1;
    });
  
    return validInlinePlugins;
  }
docs: ------------------------------------------------------------------------------ Helpers ------------------------------------------------------------------------------