MCPcopy Create free account
hub / github.com/adobe/react-spectrum / stripMarkdown

Function stripMarkdown

packages/dev/s2-docs/src/searchUtils.tsx:135–137  ·  view source on GitHub ↗
(description: string | undefined)

Source from the content-addressed store, hash-verified

133 * Strips markdown link syntax from a string, keeping only the link text.
134 */
135export function stripMarkdown(description: string | undefined): string {
136 return (description || '').replace(/\[(.*?)\]\(.*?\)/g, '$1');
137}
138
139/**
140 * Gets all of the subheadings underneath a heading within the Table of Contents.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected