# extra-markdown-text.web

> Utility methods for Markdown text{web}.

Latest version **0.1.6** (published 2025-04-08) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install extra-markdown-text.web
pnpm add extra-markdown-text.web
yarn add extra-markdown-text.web
bun add extra-markdown-text.web
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2025-04-08 |
| First published | 2022-04-01 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | extra, markdown, text, CodeBlock, Link, LinkReference, Table, CodeBlockMatchFunction, CodeBlockReplaceFunction, LinkMatchFunction, LinkReferenceMatchFunction, LinkReferenceReplaceFunction, LinkReplaceFunction, TableMatchFunction, TableReplaceFunction, codeBlocks, forEachCodeBlock, forEachLink, forEachLinkReference, forEachTable, linkReferences, links, replaceCodeBlocks, replaceLinkReferences, replaceLinks, replaceTables, tables, tagCodeBlocks, untagCodeBlocks |

## Links

- npm: https://www.npmjs.com/package/extra-markdown-text.web
- Repository: https://github.com/nodef/extra-markdown-text
- Homepage: https://github.com/nodef/extra-markdown-text#readme
- Issues: https://github.com/nodef/extra-markdown-text/issues
- npm.io page: https://npm.io/package/extra-markdown-text.web

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2025-04-08
- 0.1.5 — 2023-04-11
- 0.1.4 — 2023-01-14
- 0.1.3 — 2022-09-16
- 0.1.2 — 2022-07-30
- 0.1.1 — 2022-07-30
- 0.1.0 — 2022-04-01
- 0.0.6 — 2022-04-01
- 0.0.5 — 2022-04-01
- 0.0.4 — 2022-04-01

## README

Utility methods for Markdown text.<br>
📦 [Node.js](https://www.npmjs.com/package/extra-markdown-text),
🌐 [Web](https://www.npmjs.com/package/extra-markdown-text.web),
📜 [Files](https://unpkg.com/extra-markdown-text.web/),
📰 [Docs](https://nodef.github.io/extra-markdown-text/).

This package is available in both *Node.js* and *Web* formats. The web format
is exposed as `extra_markdown_text` standalone variable and can be loaded from
[jsDelivr CDN].

> Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo).

[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-markdown-text.web/index.js

<br>

```javascript
const fs        = require('fs');
const xmarkdown = require('extra-markdown-text');

function main() {
  var txt = fs.readFileSync('README.md', 'utf8').replace(/\r?\n/, '\n');

  xmarkdown.links(txt);
  // [
  //   {
  //     full: '[Node.js](https://www.npmjs.com/package/extra-markdown-text)',
  //     name: 'Node.js',
  //     reference: '',
  //     url: 'https://www.npmjs.com/package/extra-markdown-text'
  //   },
  //   {
  //     full: '[Web](https://www.npmjs.com/package/extra-markdown-text.web)',
  //     name: 'Web',
  //     reference: '',
  //     url: 'https://www.npmjs.com/package/extra-markdown-text.web'
  //   },
  //   ...
  // ]

  xmarkdown.linkReferences(txt);
  // [
  //   {
  //     full: '[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-markdown-text.web/index.js',
  //     name: 'jsDelivr CDN',
  //     url: 'https://cdn.jsdelivr.net/npm/extra-markdown-text.web/index.js',
  //     title: ''
  //   },
  //   {
  //     full: '[forEachCodeBlock]: https://nodef.github.io/extra-markdown-text/modules.html#forEachCodeBlock',
  //     name: 'forEachCodeBlock',
  //     url: 'https://nodef.github.io/extra-markdown-text/modules.html#forEachCodeBlock',
  //     title: ''
  //   },
  //   ...
  // ]
}
main();
```

<br>
<br>


## Index

| Property | Description |
|  ----  |  ----  |
| [forEachCodeBlock] | Match code blocks in markdown text. |
| [codeBlocks] | Get code blocks in markdown text. |
| [replaceCodeBlocks] | Replace code blocks in markdown text. |
| [tagCodeBlocks] | Tag code blocks in markdown text and remove them. |
| [untagCodeBlocks] | Untag code blocks in markdown text by adding them back. |
| [forEachLink] | Match links in markdown text. |
| [links] | Get links in markdown text. |
| [replaceLinks] | Replace links in markdown text. |
| [forEachLinkReference] | Match link references in markdown text. |
| [linkReferences] | Get link references in markdown text. |
| [replaceLinkReferences] | Replace link references in markdown text. |
| [forEachTable] | Match tables in markdown text. |
| [tables] | Get tables in markdown text. |
| [replaceTables] | Replace tables in markdown text. |

<br>
<br>

[![](https://img.youtube.com/vi/bJirgZjBqNg/maxresdefault.jpg)](https://www.youtube.com/watch?v=bJirgZjBqNg)<br>
[![ORG](https://img.shields.io/badge/org-nodef-green?logo=Org)](https://nodef.github.io)
[![DOI](https://zenodo.org/badge/476812269.svg)](https://zenodo.org/badge/latestdoi/476812269)
![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-markdown-text)

[forEachCodeBlock]: https://nodef.github.io/extra-markdown-text/modules.html#forEachCodeBlock
[codeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#codeBlocks
[replaceCodeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#replaceCodeBlocks
[tagCodeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#tagCodeBlocks
[untagCodeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#untagCodeBlocks
[forEachLink]: https://nodef.github.io/extra-markdown-text/modules.html#forEachLink
[links]: https://nodef.github.io/extra-markdown-text/modules.html#links
[replaceLinks]: https://nodef.github.io/extra-markdown-text/modules.html#replaceLinks
[forEachLinkReference]: https://nodef.github.io/extra-markdown-text/modules.html#forEachLinkReference
[linkReferences]: https://nodef.github.io/extra-markdown-text/modules.html#linkReferences
[replaceLinkReferences]: https://nodef.github.io/extra-markdown-text/modules.html#replaceLinkReferences
[forEachTable]: https://nodef.github.io/extra-markdown-text/modules.html#forEachTable
[tables]: https://nodef.github.io/extra-markdown-text/modules.html#tables
[replaceTables]: https://nodef.github.io/extra-markdown-text/modules.html#replaceTables

---
_Source: https://npm.io/package/extra-markdown-text.web · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
