✍ WeChat Markdown Editor | 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、自定义主题样式、内容管理、多图床、AI 助手等特性
This report summarizes scanner evidence for doocs/md, a TypeScript project with 13,493 GitHub stars. SynthScan examined 97,878 lines of code across 741 source files, recording 129 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 123 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 119 finding(s).
Which changes need focused human review? 129 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 129 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/core/src/renderer/renderer-impl.ts | 170 | function parseFrontMatterAndContent(markdownText: string): ParseResult { | CODE |
| LOW | packages/core/src/utils/languages.ts | 90 | function splitHighlightedHtmlByLines(html: string): string[] { | CODE |
| LOW | packages/core/src/utils/front-matter.ts | 16 | function normalizeMarkdownListMarkers(input: string): string { | CODE |
| LOW | packages/core/src/utils/mathDetection.ts | 114 | export function stripBreakBeforeInlineKatex(html: string): string { | CODE |
| LOW | packages/core/src/extensions/component.ts | 417 | function hasOnlyWhitespaceToLineEnd(src: string, from: number): boolean { | CODE |
| LOW | packages/core/src/extensions/infographic.ts | 203 | export function hydratePendingInfographicDiagrams(root: ParentNode, options?: InfographicOptions) { | CODE |
| LOW | packages/mcp-server/src/config-options.ts | 130 | export function assertAllowedCodeBlockThemeUrl(url: string): void { | CODE |
| LOW | packages/shared/src/utils/table.ts | 75 | function isTableBodyContinuationLine(line: string): boolean { | CODE |
| LOW | packages/shared/src/utils/table.ts | 97 | function isTableHeaderCandidateLine(line: string): boolean { | CODE |
| LOW | packages/shared/src/editor/history.ts | 8 | export function replaceDocumentWithoutHistory(view: EditorView, content: string) { | CODE |
| LOW | apps/web/index.html | 133 | function readLocaleFromLocalStorage() { | CODE |
| LOW | apps/web/src/composables/useInitialPreviewBoot.ts | 24 | export async function completeInitialPreviewBoot() { | CODE |
| LOW⚡ | apps/web/src/composables/useLocalizedAIServices.ts | 25 | function localizeImageServiceOptions(t: Translate): ImageServiceOption[] { | CODE |
| LOW⚡ | apps/web/src/composables/useLocalizedAIServices.ts | 32 | export function createLocalizedAIServiceOptions(t: Translate) { | CODE |
| LOW⚡ | apps/web/src/composables/useLocalizedAIServices.ts | 41 | export function useLocalizedAIServiceOptions() { | CODE |
| LOW | apps/web/src/composables/useLocalizedUploadHosts.ts | 17 | export function createLocalizedUploadHostOptions(t: Translate): IConfigOption<UploadHostValue>[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedUploadHosts.ts | 25 | export function useLocalizedUploadHostOptions() { | CODE |
| LOW⚡ | …s/web/src/composables/useLocalizedBuiltinComponents.ts | 39 | export function createLocalizedBuiltinComponents( | CODE |
| LOW⚡ | …s/web/src/composables/useLocalizedBuiltinComponents.ts | 47 | export function useLocalizedBuiltinComponents() { | CODE |
| LOW⚡ | …s/web/src/composables/useLocalizedBuiltinComponents.ts | 54 | export function useLocalizedAllComponents() { | CODE |
| LOW | apps/web/src/composables/useSlashMenuScrollHint.ts | 26 | function bindScrollContentObserver() { | CODE |
| LOW | apps/web/src/composables/useSlashMenuScrollHint.ts | 38 | function unbindScrollContentObserver() { | CODE |
| LOW | apps/web/src/composables/useCursorSync.ts | 89 | function syncEditorToPreviewElement(el: HTMLElement) { | CODE |
| LOW | apps/web/src/composables/useCursorSync.ts | 164 | function handlePreviewContentClick(event: MouseEvent) { | CODE |
| LOW | apps/web/src/composables/useComponentCompletion.ts | 203 | export function createComponentCompletionSource( | CODE |
| LOW | apps/web/src/composables/useComponentCompletion.ts | 225 | export function createComponentCompletionExtension( | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 60 | function localizeFontFamilyOptions(t: Translate): IConfigOption[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 75 | function localizeLineHeightOptions(t: Translate): IConfigOption[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 82 | function localizeBlockSpacingOptions(t: Translate): IConfigOption[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 97 | function localizeBlockquoteBackgroundOptions(t: Translate): IConfigOption[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 113 | function localizeHeadingLevelOptions(t: Translate): IConfigOption[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 120 | function localizeHeadingStyleOptions(t: Translate): IConfigOption[] { | CODE |
| LOW | apps/web/src/composables/useLocalizedStyleOptions.ts | 143 | export function createLocalizedStyleOptions( | CODE |
| LOW | apps/web/src/stores/ui.ts | 181 | function openComponentDialogWithTarget(target: string) { | CODE |
| LOW | apps/web/src/stores/render.ts | 62 | function buildComponentFingerprint( | CODE |
| LOW | apps/web/src/storage/repositories/documents-backup.ts | 179 | export function writeDocumentsPagehideBackup(posts: Post[]): string { | CODE |
| LOW | apps/web/src/storage/repositories/documents-backup.ts | 205 | export function peekDocumentsPagehideBackup(): { token: string | null, posts: Post[] } | null { | CODE |
| LOW | apps/web/src/storage/repositories/documents-backup.ts | 216 | export function clearDocumentsPagehideBackup(token?: string): void { | CODE |
| LOW | apps/web/src/storage/repositories/documents.ts | 45 | export function setUseLegacyDocumentStorage(enabled: boolean): void { | CODE |
| LOW | apps/web/src/storage/repositories/documents.ts | 49 | export function isUsingLegacyDocumentStorage(): boolean { | CODE |
| LOW | apps/web/src/storage/migrate/from-local-storage.ts | 68 | export function cleanupMigratedLocalStorage(explicitKeys?: string[]): number { | CODE |
| LOW | apps/web/src/storage/migrate/from-local-storage.ts | 124 | export async function migrateLegacyThemeSettings(engine: IndexedDBEngine): Promise<void> { | CODE |
| LOW | apps/web/src/components/ui/search-tab/SearchTab.vue | 274 | function handleReplaceInputKeyDown(e: KeyboardEvent) { | CODE |
| LOW | apps/web/src/components/ai/SidebarAIToolbar.vue | 48 | function checkSelectionAndUpdateHint() { | CODE |
| LOW | …ps/web/src/components/ai/chat-box/AIAssistantPanel.vue | 138 | function generateConversationTitle(): string { | CODE |
| LOW | …ps/web/src/components/ai/chat-box/AIAssistantPanel.vue | 151 | async function autoSaveCurrentConversation() { | CODE |
| LOW | apps/web/src/components/editor/PreviewPanel.vue | 47 | function scheduleHydratePreviewDiagrams() { | CODE |
| LOW | apps/web/src/components/editor/EditorContextMenu.vue | 167 | function downloadAsSegmentedImages(maxSegmentHeight: number) { | CODE |
| LOW | apps/web/src/components/editor/EditorPanel.vue | 58 | function onWrapperContextMenuCapture(e: MouseEvent) { | CODE |
| LOW | apps/web/src/components/editor/EditorPanel.vue | 519 | function flushEditorContentToPostAtIndex(index: number) { | CODE |
| LOW | apps/web/src/components/editor/EditorPanel.vue | 534 | function commitEditorContentToPost() { | CODE |
| LOW | apps/web/src/components/editor/CssEditor.vue | 220 | function enterSelectModeFromContextMenu() { | CODE |
| LOW | apps/web/src/components/editor/RightSlider.vue | 120 | function blockquoteBackgroundChanged(value: string) { | CODE |
| LOW | …/src/components/editor/footer/FooterOutlinePopover.vue | 52 | function scrollOutlineFocusIntoView() { | CODE |
| LOW | …eb/src/components/editor/post-slider/postSliderMenu.ts | 23 | export function getPostSliderDropdownContentProps(isMobile: boolean, desktopClass = `w-40`) { | CODE |
| LOW | …/src/components/editor/dialogs/CustomComponentForm.vue | 183 | function getPropDefaultPlaceholder(type: string): string { | CODE |
| LOW | apps/web/src/components/editor/editor-header/index.vue | 61 | function fallbackCopyUsingExecCommand(htmlContent: string) { | CODE |
| LOW | …b/src/components/editor/editor-header/FileDropdown.vue | 56 | function downloadAsSegmentedImages(maxSegmentHeight: number) { | CODE |
| LOW | …/src/components/editor/editor-header/StyleDropdown.vue | 95 | function blockquoteBackgroundChanged(value: string) { | CODE |
| LOW | apps/web/src/configs/keyboard-shortcuts.ts | 18 | export function buildKeyboardShortcutCategories(): ShortcutCategory[] { | CODE |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | apps/web/src/lib/preview/diagram-download.ts | 11 | // ─── Download helpers ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/src/lib/preview/diagram-download.ts | 85 | // ─── Download bar DOM injection ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/web/src/lib/preview/diagram-download.ts | 139 | // ─── Overlay lifecycle ──────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/custom-upload.md | 41 | errCb(err) | COMMENT |
| LOW | packages/shared/src/editor/basicSetup.ts | 21 | /// - [the default command bindings](#commands.defaultKeymap) | COMMENT |
| LOW | apps/api/wrangler.toml | 41 | # 可开通 Pro 的爱发电方案 plan_id(月 / 季 / 年) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …web/src/components/ui/password-input/PasswordInput.vue | 36 | :placeholder="placeholder" | CODE |
| LOW | apps/web/src/components/ai/AIModelPicker.vue | 86 | :placeholder="placeholder" | CODE |
| LOW | …r/dialogs/upload-providers/UploadProviderTextField.vue | 24 | :placeholder="placeholder" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/api/src/auth.ts | 55 | // Step 1: redirect to GitHub authorization | COMMENT |
| LOW | apps/api/src/auth.ts | 81 | // Step 2: GitHub callback — exchange code, issue JWT, redirect to frontend | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/api/src/auth.ts | 55 | // Step 1: redirect to GitHub authorization | COMMENT |
| LOW | apps/api/src/auth.ts | 81 | // Step 2: GitHub callback — exchange code, issue JWT, redirect to frontend | COMMENT |