forked from dontrolle/vscode-reflow-lines
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
113 lines (113 loc) · 3.26 KB
/
package.json
File metadata and controls
113 lines (113 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "reflow-markdown",
"displayName": "Reflow Markdown",
"description": "Format lines in markdown headers, paragraphs, blockquotes, lists, etc. to a preferred line-length.",
"version": "3.2.0",
"publisher": "marvhen",
"icon": "img/logo.png",
"license": "MIT",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Formatters"
],
"keywords": [
"markdown",
"text",
"format",
"reflow",
"wrap"
],
"repository": {
"type": "git",
"url": "https://github.com/marvhen/reflowmarkdown"
},
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"activationEvents": [
"onLanguage:markdown"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Reflow Markdown configuration",
"properties": {
"reflowMarkdown.preferredLineLength": {
"type": "number",
"default": 80,
"description": "Preferred line length for reflowed lines.",
"minimum": 0
},
"reflowMarkdown.doubleSpaceBetweenSentences": {
"type": "boolean",
"default": false,
"description": "Insert two spaces instead of one between each sentence."
},
"reflowMarkdown.resizeHeaderDashLines": {
"type": "boolean",
"default": false,
"description": "The dashes and equal signs under headers will be re-written to be the same length as the header text."
},
"reflowMarkdown.wrapLongLinks": {
"type": "string",
"default": "wrap",
"description": "Specifies how links will be wrapped when they in the middle of a line and cause it to extend beyond the preferred length.",
"enum": [
"wrap",
"doNotWrap"
],
"enumDescriptions": [
"The link text and the link url are started on the next line, which itself may be longer than the preferrd length.",
"The link text and the link url are kept on the current line, resulting in it being longer than the preferred length."
]
},
"reflowMarkdown.neverReflowFirstParagraph": {
"type": "boolean",
"default": false,
"description": "Never reflow the first paragraph of a document."
}
}
},
"commands": [
{
"command": "reflow-markdown.reflowMarkdown",
"title": "Reflow Markdown"
}
],
"keybindings": [
{
"command": "reflow-markdown.reflowMarkdown",
"key": "alt+q",
"when": "editorTextFocus"
}
],
"configurationDefaults": {
"[markdown]": {
"editor.defaultFormatter": "marvhen.reflow-markdown"
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.16.0",
"typescript": "^5.7.2"
}
}