MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / showMarkdownDialog

Function showMarkdownDialog

notes.js:900–1177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898
899 // Markdown功能已移除
900 function showMarkdownDialog() {
901 // 创建弹窗遮罩
902 const markdownModal = createElement('div', {
903 className: 'nsn-markdown-modal',
904 style: {
905 position: 'fixed',
906 inset: '0',
907 background: 'rgba(0,0,0,0.5)',
908 zIndex: '999999999',
909 display: 'flex',
910 alignItems: 'center',
911 justifyContent: 'center'
912 }
913 });
914
915 // 创建弹窗内容
916 const modalContent = createElement('div', {
917 className: 'nsn-markdown-modal-content',
918 style: {
919 background: '#fff',
920 borderRadius: '12px',
921 padding: '20px',
922 maxWidth: '90vw',
923 width: '700px',
924 maxHeight: '80vh',
925 boxShadow: '0 8px 32px rgba(0,0,0,0.3)',
926 overflow: 'hidden',
927 display: 'flex',
928 flexDirection: 'column'
929 }
930 });
931
932 // 标题
933 const title = createElement('div', {
934 style: {
935 fontSize: '18px',
936 fontWeight: '600',
937 color: '#333',
938 marginBottom: '16px',
939 textAlign: 'center'
940 }
941 }, ['Markdown 编辑器']);
942
943 // 分栏容器
944 const editorContainer = createElement('div', {
945 style: {
946 display: 'flex',
947 gap: '12px',
948 flex: '1',
949 minHeight: '400px',
950 marginBottom: '16px'
951 }
952 });
953
954 // 左侧:Markdown输入
955 const leftPanel = createElement('div', {
956 style: {
957 flex: '1',

Callers 1

buildToolbarFunction · 0.85

Calls 6

createElementFunction · 0.85
convertMarkdownToHTMLFunction · 0.85
attachResizeListenersFunction · 0.85
attachTableOperationsFunction · 0.85
updatePreviewFunction · 0.85

Tested by

no test coverage detected