Live demo
Docs
API Reference
GitHub
MDXEditor
Headings
Quote
Links
Link Dialog
Lists
Image
Table
Thematic Break
Toolbar
Toolbar Components
Toolbar Primitives
Code Block
CodeMirror
Sandpack
Diff/Source
Directive
HTML
JSX
Frontmatter
Markdown Shortcuts
Markdown Processing
Core
Custom Editor Primitives
Utils
VoidEmitter
IS_APPLE
onWindowChange$
always
call
compose
controlOrMeta
curry1to0
curry2to1
fromWithinEditorRead
getSelectedNode
getSelectionRectangle
joinProc
noop
prop
tap
thrush
voidEmitter
Classes
Functions
Interfaces
Type Aliases
Utilities
Variables
Function: tap()
tap
<
T
>(
arg
,
proc
):
T
Calls callback with the first argument, and returns it.
Type parameters
Type parameter
T
Parameters
Parameter
Type
arg
T
proc
(
arg
) =>
unknown
Returns
T