UNPKG

@uiw/react-md-editor

Version:

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

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