🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@flex-development/remark-preset

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flex-development/remark-preset

flex development (fldv) markdown style

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

remark-preset

github release npm license conventional commits typescript yarn

flex development (fldv) markdown style.

Contents

What is this?

This is a preset for remark to check markdown.

Install

This package is ESM only.

In Node.js with yarn:

yarn add -D @flex-development/remark-preset
See Git - Protocols | Yarn  for details regarding installing from Git.

In Deno with esm.sh:

import remarkPresetFlex from 'https://esm.sh/@flex-development/remark-preset'

In browsers with esm.sh:

<script type="module">
  import remarkPresetFlex from 'https://esm.sh/@flex-development/remark-preset'
</script>

Use

import remarkPresetFlex from '@flex-development/remark-preset'
import { remark } from 'remark'
import { reporter } from 'vfile-reporter'

/**
 * @import {VFile} from 'vfile'
 */

/**
 * The processed file.
 *
 * @type {VFile}
 * @const file
 */
const file = await remark()
  .use(remarkPresetFlex)
  .process('This *and* _that_.')

console.error(reporter(file))

Yields:

1:12-1:18 warning Unexpected emphasis marker `_`, expected `*`                                         emphasis-marker remark-lint
1:19      warning Unexpected missing final newline character, expected line feed (`\n`) at end of file final-newline   remark-lint

âš  2 warnings

API

The default export is remarkPresetFlex.

No identifiers or TypeScript types are exported.

remarkPresetFlex

(Preset) A unified preset to encapsulate fldv markdown style.

Contribute

See CONTRIBUTING.md.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

Keywords

markdown

FAQs

Package last updated on 21 Apr 2025

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