From b45a51cdac259b2b2eacdb3e38d83527238e7325 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Mon, 25 Sep 2023 19:30:59 +0200 Subject: [PATCH] Configure remark as default processor (#14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is used as a fallback if remark can’t be resolved. Closes #6 --- index.js | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/index.js b/index.js index ccd80ec..ddb90e9 100755 --- a/index.js +++ b/index.js @@ -1,11 +1,13 @@ #!/usr/bin/env node import process from 'node:process' +import {remark} from 'remark' import {createUnifiedLanguageServer} from 'unified-language-server' process.title = 'remark-language-server' createUnifiedLanguageServer({ configurationSection: 'remark', + defaultProcessor: remark, ignoreName: '.remarkignore', packageField: 'remarkConfig', pluginPrefix: 'remark', diff --git a/package.json b/package.json index 8d26973..27296db 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "index.js" ], "dependencies": { + "remark": "^15.0.0", "unified-language-server": "^4.0.0" }, "devDependencies": {