Overview
Perfect for markdown documentation analysis, link validation, SEO audits, and extracting references from markdown content.
Live Test Extract Markdown Links Source →
Formula
One function covers the whole catalog: the first argument names the source, the rest are its inputs, and the "field" pair says which single value lands in the cell. Formulas covers the grammar that applies to all of them.
=VERVE("markdownlinkextractor", A2, "field", "totalLinks")=VERVE.CALL("markdownlinkextractor", A2, "field", "totalLinks")A2 holds the markdown you are looking up. Drag the formula down and each row resolves on its own.
With literal values
Nothing has to come from a cell — typed values work the same way.
=VERVE("markdownlinkextractor", "# Title\n\n[Link](https://example.com)", "field", "totalLinks")=VERVE.CALL("markdownlinkextractor", "# Title\n\n[Link](https://example.com)", "field", "totalLinks")Inputs
Required inputs are positional, in the order below. Everything else is passed as a "name", value pair after them — the same shape as SUMIFS. Premium inputs are accepted on every plan but only take effect on plans that include them.
| Input | Type | Where it goes | Description |
|---|---|---|---|
markdownRequired | string | argument 2 (A2) | Markdown text to parse (max 100,000 characters) |
What lands in your sheet
The "field" pair is what makes the formula resolve to one cell. Its value is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.
Seeing everything at once
Drop the "field" pair and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.
=VERVE("markdownlinkextractor", A2)=VERVE.CALL("markdownlinkextractor", A2)The second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field, and leave the cells below and to the right empty.
Response fields
Paths are relative to data. Each one is exactly what the "field" pair accepts, so swapping it is how you pull a different value into a cell. On a plan without a Premium field the cell reads #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.
| Use as "field" | Type | Example cell value | Description |
|---|---|---|---|
totalLinks | number | 6 | Total number of unique links found in the markdown after removing duplicate URLs |
links | array[6] | Every unique link extracted from the markdown, in the order it first appears | |
links.0.text | string | this link | The visible label for the link: the link text, the image alt text, or the URL itself for autolinks and bare URLs |
links.0.url | string | https://example.com | The destination the link points to |
links.0.type | string | inline | How the link is written in the markdown: inline ([text](url)), reference ([text][ref]), autolink (<url>), bare (a plain URL with no markdown syntax), or image () |
categories | object | {…} | Links grouped by destination: internal, external, email, and other |
categories.internal | object | {…} | Links whose URL is a page anchor (#) or a relative path (starting with / or ./) |
categories.internal.countPremium | number | 0 | Number of internal links found |
categories.internal.links | array | [] | The internal links themselves |
categories.external | object | {…} | Links whose URL starts with http:// or https:// |
categories.external.countPremium | number | 6 | Number of external links found |
categories.external.links | array[6] | The external links themselves | |
categories.external.links.0.text | string | this link | |
categories.external.links.0.url | string | https://example.com | |
categories.external.links.0.type | string | inline | |
categories.email | object | {…} | Links whose URL is a mailto: address |
categories.email.count | number | 0 | Number of email links found |
categories.email.links | array | [] | The email links themselves |
categories.other | object | {…} | Links that don't match the internal, external, or email patterns |
categories.other.count | number | 0 | Number of other links found |
categories.other.links | array | [] | The other links themselves |
markdownLength | number | 253 | Length of the input markdown string, in characters |
Filling a whole column
Both platforms make one batched call for a column rather than one request per cell, and both cost the same — 2 credits per row looked up. How you write it differs, because the two runtimes batch at different points.
=VERVE("markdownlinkextractor", A2:A100, "field", "totalLinks")In Google Sheets, give the arguments ranges and the answers spill down from the cell you typed in. Custom functions there run synchronously and in isolation, so dragged cells cannot be coalesced — the range form is how a column becomes one call. The "field" pair is required here: a per-row two-column table has nowhere to spill. Use a full column per input (A2:A100, not A2) — a single-cell reference is read as row 1 only and the rest of the column comes back blank.
In Excel, type the formula once and fill down — no range form and none needed, because its runtime is asynchronous and the add-in coalesces the calls a fill produces into a single batched request. Do not hand VERVE.CALL a range: Excel flattens it into positional arguments, so A2:A100 arrives as a hundred separate arguments and the cell reads #ERR rather than filling.
Either way, column A holds your markdown values and the answers land beside them, one row each, blank rows skipped.
When a cell doesn't fill
A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() will not catch it; test with LEFT(cell, 4) = "#ERR" instead. Error handling covers the rest.
| Cell reads | What happened |
|---|---|
#ERR Not connected | No API key saved. Open the side panel and connect your account. |
#ERR Replace <name> with a cell or value | A preview formula was copied as-is. Swap the placeholder for a cell reference. |
#ERR No "x" in markdownlinkextractor | An option name this source does not take. The message lists the ones it does. |
#ERR No data point "…" | The "field" path is not in the response. Check it against the table above. |
#PREMIUM(field) | The field exists but your plan does not include it. |
#ERR Out of credits | The cycle's credits are spent. Usage resets on your billing date. |
Before the formula works
The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet does not leak it and a collaborator without access simply sees the last calculated values.
- Install the add-in for Google Sheets or Excel.
- Open the side panel and sign in, or paste a key from your dashboard.
- Type the formula above into any cell.
Use cases
- Documentation Analysis
- Extract and validate all links from markdown documentation
- SEO Auditing
- Identify internal and external links in markdown content for SEO optimization
- Content Migration
- Extract URLs when migrating markdown content between platforms
- Link Validation
- Generate comprehensive lists of links for automated link checking
Other ways to use Extract Markdown Links
Set up Extract Markdown Links on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.
Related
More in Text Processing: