# @unified-myst/target-extension

> Extension to support the MyST target syntax (`(name)=`) in unified

Latest version **0.0.7** (published 2022-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @unified-myst/target-extension
pnpm add @unified-myst/target-extension
yarn add @unified-myst/target-extension
bun add @unified-myst/target-extension
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2022-03-30 |
| First published | 2022-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 33.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Chris Sewell |
| Maintainers | chrisjsewell |
| Keywords | myst, unified, mdast, micromark |

## Links

- npm: https://www.npmjs.com/package/@unified-myst/target-extension
- Repository: https://github.com/executablebooks/unified-myst
- Homepage: https://github.com/executablebooks/unified-myst/tree/main/packages/target-extension#readme
- Issues: https://github.com/executablebooks/unified-myst/issues
- npm.io page: https://npm.io/package/@unified-myst/target-extension

## Dependencies (2)

- [micromark-factory-space](https://npm.io/package/micromark-factory-space.md) ^1.0.0
- [micromark-util-character](https://npm.io/package/micromark-util-character.md) ^1.1.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.0.7 (latest) — 2022-03-30
- 0.0.6 — 2022-03-30
- 0.0.5 — 2022-03-29
- 0.0.4 — 2022-03-29
- 0.0.3 — 2022-03-28
- 0.0.2 — 2022-03-28

## README

# `@unified-myst/target-extension`

Extension to support the MyST target syntax (`(name)=`) in [unified](https://unifiedjs.com/).

Semantically, a target is an identifier for referencing the preceding syntax block.

For example:

```markdown
(name)=
# Header
```

Allows for the header to be referenced by the identifier `name`.

Multiple targets can be defined, such that all identifiers will be applied to the preceding (non-target) syntax block, e.g.

```markdown
(name1)=
(name2)=
# Header
```

Targets must be unique, across the entire document.

## See Also

- [RST internal hyperlink targets](https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#hyperlink-targets)

## TODO

Parsing considerations:

- whitespace inside `(...)`
- target within other flow level elements
- What to do with non-whitespace after `=`?
  - Should it invalidate the line?
  - Should a new block be allowed?
- identifier normalisation?

---
_Source: https://npm.io/package/@unified-myst/target-extension · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
