UNPKG

@uiw/react-md-editor

Version:

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

28 lines (26 loc) 618 B
import * as React from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; export var title4 = { name: 'title4', keyCommand: 'title4', shortcuts: 'ctrlcmd+4', buttonProps: { 'aria-label': 'Insert title4', title: 'Insert title 4' }, icon: /*#__PURE__*/_jsx("div", { style: { fontSize: 14, textAlign: 'left' }, children: "Title 4" }), execute: (state, api) => { var modifyText = "#### " + state.selectedText + "\n"; if (!state.selectedText) { modifyText = "#### "; } api.replaceSelection(modifyText); } }; //# sourceMappingURL=title4.js.map