UNPKG

@uiw/react-md-editor

Version:

A markdown editor with preview, implemented with React.js and TypeScript.

24 lines (22 loc) 534 B
import * as React from 'react'; export var title4 = { name: 'title4', keyCommand: 'title4', buttonProps: { 'aria-label': 'Insert title4' }, icon: /*#__PURE__*/React.createElement("div", { style: { fontSize: 14, textAlign: 'left' } }, "Title 4"), execute: function execute(state, api) { var modifyText = "#### ".concat(state.selectedText, "\n"); if (!state.selectedText) { modifyText = "#### "; } api.replaceSelection(modifyText); } }; //# sourceMappingURL=title4.js.map