Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amanda-mitchell/micromark-extension-footer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amanda-mitchell/micromark-extension-footer

A micromark extension that parses footer elements.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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>

Keywords

FAQs

Package last updated on 26 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc