[−][src]Function cmark_gfm_sys::cmark_plugin_register_syntax_extension
pub unsafe extern "C" fn cmark_plugin_register_syntax_extension(
plugin: *mut cmark_plugin,
extension: *mut cmark_syntax_extension
) -> c_int
Register a syntax 'extension' with the 'plugin', it will be made available as an extension and, if attached to a cmark_parser with 'cmark_parser_attach_syntax_extension', it will contribute to the block parsing process.
See the documentation for 'cmark_syntax_extension' for information on how to implement one.
This function will typically be called from the init function of external modules.
This takes ownership of 'extension', one should not call 'cmark_syntax_extension_free' on a registered extension.