@uiw/react-md-editor
Version:
A markdown editor with preview, implemented with React.js and TypeScript.
24 lines (22 loc) • 538 B
JavaScript
import * as React from 'react';
export var title6 = {
name: 'title6',
keyCommand: 'title6',
buttonProps: {
'aria-label': 'Insert title6'
},
icon: /*#__PURE__*/React.createElement("div", {
style: {
fontSize: 12,
textAlign: 'left'
}
}, "Title 6"),
execute: function execute(state, api) {
var modifyText = "###### ".concat(state.selectedText, "\n");
if (!state.selectedText) {
modifyText = "###### ";
}
api.replaceSelection(modifyText);
}
};
//# sourceMappingURL=title6.js.map