@putout/processor-markdown 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/markdown.js +2 -3
- package/package.json +1 -1
package/lib/markdown.js
CHANGED
|
@@ -39,11 +39,11 @@ export const files = [
|
|
|
39
39
|
];
|
|
40
40
|
|
|
41
41
|
export const find = async (rawSource, options = {}) => {
|
|
42
|
+
await parseStore.init();
|
|
43
|
+
|
|
42
44
|
if (!rawSource.length)
|
|
43
45
|
return [];
|
|
44
46
|
|
|
45
|
-
await parseStore.init();
|
|
46
|
-
|
|
47
47
|
const {messages} = await unified()
|
|
48
48
|
.use(parseStore)
|
|
49
49
|
.use(preset)
|
|
@@ -186,7 +186,6 @@ const apply = ({list, visit}) => (node) => {
|
|
|
186
186
|
|
|
187
187
|
if (lang === 'json') {
|
|
188
188
|
const code = list.shift();
|
|
189
|
-
|
|
190
189
|
node.value = fromJS(code);
|
|
191
190
|
}
|
|
192
191
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/processor-markdown",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout processor adds ability to parse markdown files and lint JavaScript, JSX, TypeScript and JSON snippets",
|