@uiw/react-md-editor
Version:
A markdown editor with preview, implemented with React.js and TypeScript.
28 lines (26 loc) • 616 B
JavaScript
import * as React from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
export var title3 = {
name: 'title3',
keyCommand: 'title3',
shortcuts: 'ctrlcmd+3',
buttonProps: {
'aria-label': 'Insert title3',
title: 'Insert title 3'
},
icon: /*#__PURE__*/_jsx("div", {
style: {
fontSize: 15,
textAlign: 'left'
},
children: "Title 3"
}),
execute: (state, api) => {
var modifyText = "### " + state.selectedText + "\n";
if (!state.selectedText) {
modifyText = "### ";
}
api.replaceSelection(modifyText);
}
};
//# sourceMappingURL=title3.js.map