diff --git a/main.js b/main.js index a2760a0d..4a788dee 100644 --- a/main.js +++ b/main.js @@ -1560,8 +1560,8 @@ class SmartConnectionsPlugin extends Obsidian.Plugin { if (limits.chars_per_line && line.length > limits.chars_per_line) { line = line.slice(0, limits.chars_per_line) + "..."; } - // if line is "---", skip - if (line === "---") { + // if line is "---" or there are spaces after "---", skip + if (line.trim() === "---") { // frontmatter ends if (is_frontmatter) { is_frontmatter = false;