remark-preset 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @flex-development/remark-preset@1.0.0
Install via package.json:
"@flex-development/remark-preset": "1.0.0"
About this version
flex development (fldv) markdown style.
This is a preset for remark to check markdown.
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>
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
The default export is remarkPresetFlex
.
No identifiers or TypeScript types are exported.
(Preset
) A unified preset to encapsulate fldv markdown style.
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.
Details
- remark-preset
-
flex-development
- 5 months ago
- BSD-3-Clause
- 111 dependencies
Assets
- remark-preset-1.0.0.tgz
Download activity
- Total downloads 10
- Last 30 days 0
- Last week 0
- Today 0