UNPKG

@uiw/react-md-editor

Version:

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

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