JSPM

@amanda-mitchell/micromark-extension-footer

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q64160F
  • License MIT

A micromark extension that parses footer elements.

Package Exports

  • @amanda-mitchell/micromark-extension-footer
  • @amanda-mitchell/micromark-extension-footer/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@amanda-mitchell/micromark-extension-footer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@amanda-mitchell/micromark-extension-footer

micromark extension to support a CommonMark proposal for footers.

This package provides the low-level modules for integrating with the micromark tokenizer and the micromark HTML compiler.

Installation

yarn add @amanda-mitchell/micromark-extension-footer

Usage

micromark can be configured to use this plugin by specifying its extensions and htmlExtensions options:

const micromark = require('micromark');

const syntax = require('@amanda-mitchell/micromark-extension-footer');
const html = require('@amanda-mitchell/micromark-extension-footer/html');

const document = `hello, world!

^^ a footer
`;

const renderedDocument = micromark(document, {
  extensions: [syntax()],
  htmlExtensions: [html()],
});

console.log(renderedDocument);

When run, this script will output

<p>hello, world!</p>
<footer>a footer</footer>