Socket
Socket
Sign inDemoInstall

remark-join-cjk-lines

Package Overview
Dependencies
1
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-join-cjk-lines


Version published
Maintainers
0
Created

Readme

Source

remark-join-cjk-lines

Node.js CI Node.js Package

remark-join-cjk-lines is a remark plugin to remove extra space between CJK Characters.

Installation

npm install remark-join-cjk-lines
# or
yarn add remark-join-cjk-lines

Usage

With Remark directly

const remark = require('remark');
const joinCJKLines = require('remark-join-cjk-lines');
remark()
  .use(joinCJKLines)
  .processSync(/*...*/);

With Gatsby

With gatsby-transformer-remark:

// gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [require('remark-join-cjk-lines')],
    },
  },
],

With gatsby-plugin-mdx:

// gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-plugin-mdx',
      options: {
        extensions: ['.md', '.mdx'],
        remarkPlugins: [require('remark-join-cjk-lines')],
        gatsbyRemarkPlugins: [],
     },
  },
],

With Docusaurus v2

// docusaurus.config.js
module.exports = {
  // ...
  presets: [
    [
      '@docusaurus/preset-classic',
      {
        docs: {
          remarkPlugins: [require('remark-join-cjk-lines')],
        },
      },
    ],
  ],
};

Docusaurus's remarkPlugins take effect in build mode only.

NOTE: Run gatsby clean to take effect.

License

MIT licensed

FAQs

Last updated on 02 Jul 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc