MCPcopy Index your code
hub / github.com/primer/react / indent

Function indent

packages/react/src/drafts/MarkdownEditor/_useIndenting.ts:17–17  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

15
16const dedent = (line: string) => indentationRegex.exec(line)?.[1] ?? ''
17const indent = (line: string) => ` ${line}`
18
19/**
20 * Provides functionality for indenting and dedenting selected lines in the Markdown editor.

Callers 1

useIndentingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected