Sha256: c762c5b5b2b1698cb51df59c891853174f22679aaa0c5ea452176fc3c35e16e5

Contents?: true

Size: 803 Bytes

Versions: 5

Compression:

Stored size: 803 Bytes

Contents

#include "cmark-gfm-core-extensions.h"
#include "autolink.h"
#include "strikethrough.h"
#include "table.h"
#include "tagfilter.h"
#include "registry.h"
#include "plugin.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 cmark_gfm_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.18.2 ext/commonmarker/core-extensions.c
commonmarker-0.18.1 ext/commonmarker/core-extensions.c
commonmarker-0.18.0 ext/commonmarker/core-extensions.c
commonmarker-0.17.13 ext/commonmarker/core-extensions.c
commonmarker-0.17.12 ext/commonmarker/core-extensions.c