Socket
Socket
Sign inDemoInstall

micromark-factory-space

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-factory-space

micromark factory to parse markdown space (found in lots of places)


Version published
Weekly downloads
5.5M
decreased by-20.06%
Maintainers
1
Weekly downloads
 
Created

What is micromark-factory-space?

The micromark-factory-space package is a utility for handling spaces in the micromark ecosystem, which is a tool for parsing and compiling markdown. It provides functions to handle spaces, tabs, and line endings in markdown documents.

What are micromark-factory-space's main functionalities?

Handling spaces

This feature allows you to handle spaces in markdown documents. The factorySpace function is used to create a tokenizer that processes spaces.

const { factorySpace } = require('micromark-factory-space');

const tokenizer = {
  tokenize: function (effects, ok, nok) {
    return factorySpace(effects, ok, 'space');
  }
};

Handling tabs

This feature allows you to handle tabs in markdown documents. The factorySpace function is used to create a tokenizer that processes tabs.

const { factorySpace } = require('micromark-factory-space');

const tokenizer = {
  tokenize: function (effects, ok, nok) {
    return factorySpace(effects, ok, 'tab');
  }
};

Handling line endings

This feature allows you to handle line endings in markdown documents. The factorySpace function is used to create a tokenizer that processes line endings.

const { factorySpace } = require('micromark-factory-space');

const tokenizer = {
  tokenize: function (effects, ok, nok) {
    return factorySpace(effects, ok, 'lineEnding');
  }
};

Other packages similar to micromark-factory-space

Keywords

FAQs

Package last updated on 16 Jun 2021

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