Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
refactor(markdown-editor): drop dead export + trim duplicated comment
Sergey Kozyrenkob59de2055647
diff --git a/frontend/src/components/shared/markdown-editor/markdown-editor-marked.ts b/frontend/src/components/shared/markdown-editor/markdown-editor-marked.tsindex baed5088..9c950745 100644--- a/frontend/src/components/shared/markdown-editor/markdown-editor-marked.ts+++ b/frontend/src/components/shared/markdown-editor/markdown-editor-marked.ts@@ -64,7 +64,7 @@ const createFaithfulMarked = () => {// per-extension hook), so replace that one method with identity, keeping load and save byte-symmetric.type ManagerWithEncode = { encodeTextForMarkdown: (text: string) => string };-export const FaithfulMarkdownText = Extension.create({+const FaithfulMarkdownText = Extension.create({name: 'faithfulMarkdownText',onBeforeCreate() {const manager = this.editor.markdown as unknown as ManagerWithEncode | undefined;diff --git a/frontend/src/components/shared/markdown-editor/markdown-editor.tsx b/frontend/src/components/shared/markdown-editor/markdown-editor.tsxindex 4c73eb59..3058a8da 100644--- a/frontend/src/components/shared/markdown-editor/markdown-editor.tsx+++ b/frontend/src/components/shared/markdown-editor/markdown-editor.tsx@@ -234,10 +234,6 @@ function MarkdownEditor({// - on every external `setContent` (e.g. parent calls// form.reset(serverDocument)), because that transaction is// not a user edit either.- //- // We MUST NOT reset on every render: when the user types,- // `value` changes too, and resetting then would erase the- // user's own undo history.if (!hasResetInitialHistoryRef.current || shouldExternalSync) {hasResetInitialHistoryRef.current = true;resetUndoHistory(editor);