We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0791cb6 commit 0b18708Copy full SHA for 0b18708
plugins/headings/style.py
@@ -66,6 +66,8 @@ def on_load(self):
66
67
def on_pre_save(self):
68
self.auto_detect_heading_style()
69
+ if self.view.settings().get("mde.auto_match_heading_hashes", False):
70
+ self.view.run_command("mde_match_heading_hashes")
71
72
def auto_detect_heading_style(self):
73
view = self.view
@@ -86,6 +88,3 @@ def auto_detect_heading_style(self):
86
88
view.settings().set("mde.match_heading_hashes", num_trailing / num_leading > 0.5)
87
89
else:
90
view.settings().erase("mde.match_heading_hashes")
-
- if view.settings().get("mde.auto_match_heading_hashes", False):
91
- view.run_command("mde_match_heading_hashes")
0 commit comments