Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
16
const
dedent = (line: string) => indentationRegex.exec(line)?.[1] ??
''
17
const
indent = (line: string) => ` ${line}`
18
19
/**
20
* Provides functionality
for
indenting and dedenting selected lines in the Markdown editor.
Callers
1
useIndenting
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected