summaryrefslogtreecommitdiff
path: root/src/micromark-collect-headers.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-04-01 10:25:28 -0600
committerGravatar GitHub <noreply@github.com> 2021-04-01 10:25:28 -0600
commitc26c244ca2634d462616d6cf71072fbe26becba2 (patch)
tree1bd5e83eff9ca88200aacb272c84439f192015ec /src/micromark-collect-headers.ts
parentf6a7ac67befff863e34133673efb78ea7ac0fe48 (diff)
downloadastro-c26c244ca2634d462616d6cf71072fbe26becba2.tar.gz
astro-c26c244ca2634d462616d6cf71072fbe26becba2.tar.zst
astro-c26c244ca2634d462616d6cf71072fbe26becba2.zip
Annoying Lint PR #2 (#47)
Diffstat (limited to '')
-rw-r--r--src/micromark-collect-headers.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/micromark-collect-headers.ts b/src/micromark-collect-headers.ts
index 78567699c..69781231a 100644
--- a/src/micromark-collect-headers.ts
+++ b/src/micromark-collect-headers.ts
@@ -1,7 +1,10 @@
import slugger from 'github-slugger';
-// NOTE: micromark has terrible TS types. Instead of fighting with the
-// limited/broken TS types that they ship, we just reach for our good friend, "any".
+/**
+ * Create Markdown Headers Collector
+ * NOTE: micromark has terrible TS types. Instead of fighting with the
+ * limited/broken TS types that they ship, we just reach for our good friend, "any".
+ */
export function createMarkdownHeadersCollector() {
const headers: any[] = [];
let currentHeader: any;