We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597a517 commit d4189abCopy full SHA for d4189ab
test/fixtures/snapshot/check-marked.js
@@ -0,0 +1,21 @@
1
+'use strict';
2
+
3
+let marked;
4
+if (process.env.NODE_TEST_USE_SNAPSHOT === 'true') {
5
+ console.error('NODE_TEST_USE_SNAPSHOT true');
6
+ marked = globalThis.marked;
7
+} else {
8
+ console.error('NODE_TEST_USE_SNAPSHOT false');
9
+ marked = require('./marked');
10
+}
11
12
+const md = `
13
+# heading
14
15
+[link][1]
16
17
+[1]: #heading "heading"
18
+`;
19
20
+const html = marked(md)
21
+console.log(html);
0 commit comments