diff --git a/frontend/app.js b/frontend/app.js index e560858..e1d3ae4 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -2968,8 +2968,8 @@ function noteApp() { // List items: lines starting with -, *, + or a number (e.g. 1., 10.), excluding tasks [-] const listItems = (content.match(/^\s*(?:[-*+]|\d+\.)\s+(?!\[)/gm) || []).length; - // Tables: separator rows containing both '|' and '---' - const tables = (content.match(/^(?=.*\|)(?=.*---).*$/gm) || []).length; + // Tables: markdown table separator rows (| --- | --- |) + const tables = (content.match(/^\s*\|(?:\s*:?-+:?\s*\|){1,}\s*$/gm) || []).length; // Link count const linkMatches = content.match(/\[([^\]]+)\]\(([^\)]+)\)/g) || []; diff --git a/frontend/index.html b/frontend/index.html index 14cedc8..a1969f9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -733,7 +733,7 @@ :style="'width: ' + sidebarWidth + 'px; background-color: var(--bg-secondary); border-right: 1px solid var(--border-primary); min-width: 200px; max-width: 600px;'" > -
+
- - -
- - -
-

-
+
-
+
-
+