UNPKG

@uiw/react-md-editor

Version:

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

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