Skip to content

Commit

Permalink
Configure remark as default processor (#14)
Browse files Browse the repository at this point in the history
This is used as a fallback if remark can’t be resolved.

Closes #6
  • Loading branch information
remcohaszing committed Sep 25, 2023
1 parent 1af91a0 commit b45a51c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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',
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -29,6 +29,7 @@
"index.js"
],
"dependencies": {
"remark": "^15.0.0",
"unified-language-server": "^4.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit b45a51c

Please sign in to comment.