You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Linux ~/.vscode/extensions/darkriszty.markdown-table-prettify-3.0.0
32
+
33
+
Available features from the command line:
34
+
- To prettify a file: `npm run --silent prettify-md < input.md`.
35
+
- To prettify a file and save the output: `npm run --silent prettify-md < input.md > output.md`.
36
+
- To check whether a file is prettyfied or not: `npm run --silent check-md < input.md`. This will fail with an exception and return code `1` if the file is not prettyfied.
37
+
38
+
> Note: the `--silent` switch sets the npm log level to silent, which is useful to hide the executed file name and concentrate on the actual output.
39
+
40
+
### Formatting with docker
41
+
42
+
Available features from docker:
43
+
- To prettify a file: `docker container run -i darkriszty/prettify-md < input.md`.
44
+
- To prettify a file and save the output: `docker container run -i darkriszty/prettify-md < input.md > output.md`.
45
+
- To check whether a file is prettyfied or not: `docker container run -i darkriszty/prettify-md --check < input.md`. This will fail with an exception and return code `1` if the file is not prettyfied.
46
+
17
47
## Extension Settings
18
48
19
-
The extension is available for markdown language mode. It can either format a selected table (`Format Selection`) or the entire document (`Format Document`).
49
+
The extension is available for markdown language mode. It can either prettify a selected table (`Format Selection`) or the entire document (`Format Document`).
50
+
A VSCode command called `Prettify markdown tables` is also available to format format the currently opened document.
51
+
52
+
Configurable settings:
53
+
- The maximum texth length of a selection/entire document to consider for formatting. Defaults to 1M chars. There is no limit when running from the command line.
54
+
- Keyboard shortcut to prettify the currently opened markdown document. Default: CTRL+ALT+M (CMD+ALT+M on Mac).
0 commit comments