# docmark-grammar

[![github release](https://img.shields.io/github/v/release/flex-development/docmark.svg?include_prereleases\&sort=date\&filter=docmark-grammar%40*)](https://github.com/flex-development/docmark/releases/latest)
[![npm](https://img.shields.io/npm/v/@flex-development/docmark-grammar.svg)](https://npmjs.com/package/@flex-development/docmark-grammar)
[![npm downloads](https://img.shields.io/npm/dm/@flex-development/docmark-grammar.svg)](https://www.npmcharts.com/compare/@flex-development/docmark-grammar?interval=30)
[![minified bundle size](https://badgen.net/bundlephobia/min/@flex-development/docmark-grammar?cache)](https://bundlephobia.com/package/@flex-development/docmark-grammar)
[![install size](https://packagephobia.now.sh/badge?p=@flex-development/docmark-grammar)](https://packagephobia.now.sh/result?p=@flex-development/docmark-grammar)
[![tree shaking suppport](https://badgen.net/bundlephobia/tree-shaking/@flex-development/docmark-grammar)](https://bundlephobia.com/package/@flex-development/docmark-grammar)
[![module type: esm](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
[![license](https://img.shields.io/github/license/flex-development/docmark)](LICENSE.md)

core [docmark][] constructs.

## Contents

- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
- [API](#api)
- [Types](#types)
- [Contribute](#contribute)

## What is this?

**TODO**: what is this?

## When should I use this?

This package is useful when extending docmark.

## Install

This package is [ESM only][esm].

In Node.js with [yarn][]:

```sh
yarn add @flex-development/docmark-grammar
```

<blockquote>
  <small>
    See <a href='https://yarnpkg.com/protocol/git'>Git - Protocols | Yarn</a>
    &nbsp;for details regarding installing from Git.
  </small>
</blockquote>

In Deno with [`esm.sh`][esmsh]:

```ts
import {
  blankLine,
  region,
  summary,
  trailingWhitespace,
  typeExpressionValue
} from 'https://esm.sh/@flex-development/docmark'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
  import {
    blankLine,
    region,
    summary,
    trailingWhitespace,
    typeExpressionValue
  } from 'https://esm.sh/@flex-development/docmark'
</script>
```

## Use

**TODO**: use

## API

This package exports the identifiers `blankLine`, `region`, `summary`, `trailingWhitespace`, and `typeExpressionValue`.\
There is no default export.

Each identifier is a [`Construct`][construct].\
See the [code](./src/constructs/) for more info.

## Types

This package is fully typed with [TypeScript][].

## Contribute

See [`CONTRIBUTING.md`](../../CONTRIBUTING.md).

This project has a [code of conduct](../../CODE_OF_CONDUCT.md).
By interacting with this repository, organization, or community you agree to abide by its terms.

[construct]: ../docmark-util-types/src/construct.mts

[docmark]: ../../README.md

[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

[esmsh]: https://esm.sh

[typescript]: https://www.typescriptlang.org

[yarn]: https://yarnpkg.com
