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
[](https://marketplace.visualstudio.com/items?itemName=darkriszty.markdown-table-prettify)
Makes tables more readable for humans. Compatible with the Markdown writer plugin's table formatter feature in Atom.
9
9
@@ -62,18 +62,18 @@ Available features from docker:
62
62
63
63
## CLI
64
64
65
-
Formatting files or checking if they're already formatted is possible from the command line. This requires `node` and `npm`.
65
+
Formatting files or checking if they're already formatted is possible from the command line. This requires `node` and `npm` (optionally also `npx`).
66
66
67
67
### Available features from the command line:
68
68
- To prettify a file: `npm run --silent prettify-md < input.md`.
69
69
- To prettify a file and save the output: `npm run --silent prettify-md < input.md > output.md`.
70
70
- 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.
71
71
72
-
> 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.
72
+
> 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.
73
73
74
74
### Installation
75
75
76
-
To access the CLI, the extension can either be used from the Github sources, from the install VSCode extension or from npm.
76
+
To access the CLI, the extension can either be used from the Github sources, from the already instaledl VSCode extension or from NPM.
77
77
78
78
#### Compiling from the source code
79
79
@@ -89,12 +89,9 @@ Locate the installed extension path. The typical location of the installed exten
Install the npm package `npm install -g markdown-table-prettify`. Use `npx` to prettify files:
95
-
- To prettify a file: `npx markdown-table-prettify < input.md`.
96
-
- To prettify a file and save the output: `npx markdown-table-prettify < input.md > output.md`.
97
-
- To check whether a file is prettyfied or not: `npx markdown-table-prettify --check < input.md`. This will fail with an exception and return code `1` if the file is not prettyfied.
94
+
Install the NPM package `npm install -g markdown-table-prettify`. Optionally, use `npx` to prettify files: `npx markdown-table-prettify < input.md` (instead of `npm run --silent prettify-md < input.md`).
0 commit comments