{"id":21831408,"url":"https://github.com/nodef/extra-markdown-text","last_synced_at":"2026-02-15T02:31:38.622Z","repository":{"id":57686229,"uuid":"476812269","full_name":"nodef/extra-markdown-text","owner":"nodef","description":"Utility methods for Markdown text.","archived":false,"fork":false,"pushed_at":"2025-04-08T17:19:19.000Z","size":141,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T22:49:17.904Z","etag":null,"topics":["code-block","code-block-match-function","code-block-replace-function","code-blocks","extra","for-each-code-block","for-each-link","for-each-link-reference","for-each-table","link","link-match-function","link-reference","link-reference-match-function","link-reference-replace-function","link-replace-function","markdown","table","table-match-function","table-replace-function","text"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/extra-markdown-text","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-01T17:29:38.000Z","updated_at":"2025-04-08T17:19:20.000Z","dependencies_parsed_at":"2025-04-12T18:16:11.086Z","dependency_job_id":"0c728a61-eedd-426d-b2f4-750add0e5854","html_url":"https://github.com/nodef/extra-markdown-text","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"1efd3077a0243df17a201e8718d7004d6f50d7ec"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nodef/extra-markdown-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-markdown-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-markdown-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-markdown-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-markdown-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-markdown-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-markdown-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29465702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-block","code-block-match-function","code-block-replace-function","code-blocks","extra","for-each-code-block","for-each-link","for-each-link-reference","for-each-table","link","link-match-function","link-reference","link-reference-match-function","link-reference-replace-function","link-replace-function","markdown","table","table-match-function","table-replace-function","text"],"created_at":"2024-11-27T19:10:17.515Z","updated_at":"2026-02-15T02:31:38.601Z","avatar_url":"https://github.com/nodef.png","language":"TypeScript","readme":"Utility methods for Markdown text.\u003cbr\u003e\n📦 [Node.js](https://www.npmjs.com/package/extra-markdown-text),\n🌐 [Web](https://www.npmjs.com/package/extra-markdown-text.web),\n📜 [Files](https://unpkg.com/extra-markdown-text/),\n📰 [Docs](https://nodef.github.io/extra-markdown-text/).\n\nThis package is available in both *Node.js* and *Web* formats. The web format\nis exposed as `extra_markdown_text` standalone variable and can be loaded from\n[jsDelivr CDN].\n\n\u003e Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo).\n\n[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-markdown-text.web/index.js\n\n\u003cbr\u003e\n\n```javascript\nconst fs        = require('fs');\nconst xmarkdown = require('extra-markdown-text');\n\nfunction main() {\n  var txt = fs.readFileSync('README.md', 'utf8').replace(/\\r?\\n/, '\\n');\n\n  xmarkdown.links(txt);\n  // [\n  //   {\n  //     full: '[Node.js](https://www.npmjs.com/package/extra-markdown-text)',\n  //     name: 'Node.js',\n  //     reference: '',\n  //     url: 'https://www.npmjs.com/package/extra-markdown-text'\n  //   },\n  //   {\n  //     full: '[Web](https://www.npmjs.com/package/extra-markdown-text.web)',\n  //     name: 'Web',\n  //     reference: '',\n  //     url: 'https://www.npmjs.com/package/extra-markdown-text.web'\n  //   },\n  //   ...\n  // ]\n\n  xmarkdown.linkReferences(txt);\n  // [\n  //   {\n  //     full: '[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-markdown-text.web/index.js',\n  //     name: 'jsDelivr CDN',\n  //     url: 'https://cdn.jsdelivr.net/npm/extra-markdown-text.web/index.js',\n  //     title: ''\n  //   },\n  //   {\n  //     full: '[forEachCodeBlock]: https://nodef.github.io/extra-markdown-text/modules.html#forEachCodeBlock',\n  //     name: 'forEachCodeBlock',\n  //     url: 'https://nodef.github.io/extra-markdown-text/modules.html#forEachCodeBlock',\n  //     title: ''\n  //   },\n  //   ...\n  // ]\n}\nmain();\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Index\n\n| Property | Description |\n|  ----  |  ----  |\n| [forEachCodeBlock] | Match code blocks in markdown text. |\n| [codeBlocks] | Get code blocks in markdown text. |\n| [replaceCodeBlocks] | Replace code blocks in markdown text. |\n| [tagCodeBlocks] | Tag code blocks in markdown text and remove them. |\n| [untagCodeBlocks] | Untag code blocks in markdown text by adding them back. |\n| [forEachLink] | Match links in markdown text. |\n| [links] | Get links in markdown text. |\n| [replaceLinks] | Replace links in markdown text. |\n| [forEachLinkReference] | Match link references in markdown text. |\n| [linkReferences] | Get link references in markdown text. |\n| [replaceLinkReferences] | Replace link references in markdown text. |\n| [forEachTable] | Match tables in markdown text. |\n| [tables] | Get tables in markdown text. |\n| [replaceTables] | Replace tables in markdown text. |\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n[![](https://img.youtube.com/vi/bJirgZjBqNg/maxresdefault.jpg)](https://www.youtube.com/watch?v=bJirgZjBqNg)\u003cbr\u003e\n[![ORG](https://img.shields.io/badge/org-nodef-green?logo=Org)](https://nodef.github.io)\n[![DOI](https://zenodo.org/badge/476812269.svg)](https://zenodo.org/badge/latestdoi/476812269)\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-markdown-text)\n\n[forEachCodeBlock]: https://nodef.github.io/extra-markdown-text/modules.html#forEachCodeBlock\n[codeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#codeBlocks\n[replaceCodeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#replaceCodeBlocks\n[tagCodeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#tagCodeBlocks\n[untagCodeBlocks]: https://nodef.github.io/extra-markdown-text/modules.html#untagCodeBlocks\n[forEachLink]: https://nodef.github.io/extra-markdown-text/modules.html#forEachLink\n[links]: https://nodef.github.io/extra-markdown-text/modules.html#links\n[replaceLinks]: https://nodef.github.io/extra-markdown-text/modules.html#replaceLinks\n[forEachLinkReference]: https://nodef.github.io/extra-markdown-text/modules.html#forEachLinkReference\n[linkReferences]: https://nodef.github.io/extra-markdown-text/modules.html#linkReferences\n[replaceLinkReferences]: https://nodef.github.io/extra-markdown-text/modules.html#replaceLinkReferences\n[forEachTable]: https://nodef.github.io/extra-markdown-text/modules.html#forEachTable\n[tables]: https://nodef.github.io/extra-markdown-text/modules.html#tables\n[replaceTables]: https://nodef.github.io/extra-markdown-text/modules.html#replaceTables\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-markdown-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-markdown-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-markdown-text/lists"}