Sha256: d466ffac14bf472f77b6c4daac3c7e3face1a0a55c9a860ba1a26707089bee7b

Contents?: true

Size: 763 Bytes

Versions: 5

Compression:

Stored size: 763 Bytes

Contents

#include "core-extensions.h"
#include "autolink.h"
#include "strikethrough.h"
#include "table.h"
#include "tagfilter.h"
#include "registry.h"

static int core_extensions_registration(cmark_plugin *plugin) {
  cmark_plugin_register_syntax_extension(plugin, create_table_extension());
  cmark_plugin_register_syntax_extension(plugin,
                                         create_strikethrough_extension());
  cmark_plugin_register_syntax_extension(plugin, create_autolink_extension());
  cmark_plugin_register_syntax_extension(plugin, create_tagfilter_extension());
  return 1;
}

void core_extensions_ensure_registered(void) {
  static int registered = 0;

  if (!registered) {
    cmark_register_plugin(core_extensions_registration);
    registered = 1;
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonmarker-0.17.5 ext/commonmarker/cmark/extensions/core-extensions.c
commonmarker-0.17.4 ext/commonmarker/cmark/extensions/core-extensions.c
commonmarker-0.17.2 ext/commonmarker/cmark/extensions/core-extensions.c
commonmarker-0.17.1 ext/commonmarker/cmark/extensions/core-extensions.c
commonmarker-0.17.0 ext/commonmarker/cmark/extensions/core-extensions.c