Sha256: fd3bbc2e1460386b8fd5b162b29ee70ff12282568507d15cdb6802aedeea00d5

Contents?: true

Size: 783 Bytes

Versions: 9

Compression:

Stored size: 783 Bytes

Contents

#include "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 core_extensions_ensure_registered(void) {
  static int registered = 0;

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

Version data entries

9 entries across 8 versions & 2 rubygems

Version Path
commonmarker-0.17.11 ext/commonmarker/core-extensions.c
commonmarker-0.17.10 ext/commonmarker/core-extensions.c
tdiary-5.0.8 vendor/bundle/gems/commonmarker-0.17.9/ext/commonmarker/core-extensions.c
commonmarker-0.17.9 ext/commonmarker/core-extensions.c
commonmarker-0.17.8 ext/commonmarker/core-extensions.c
commonmarker-0.17.7.1 ext/commonmarker/core-extensions.c
commonmarker-0.17.7 ext/commonmarker/cmark-upstream/extensions/core-extensions.c
commonmarker-0.17.7 ext/commonmarker/core-extensions.c
commonmarker-0.17.6 ext/commonmarker/cmark/extensions/core-extensions.c