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
- To prettify a file: `npm run --silent prettify-md < input.md`.
@@ -39,15 +39,17 @@ Available features from the command line:
39
39
40
40
### Formatting with docker
41
41
42
+
The core formatting logic of the extension is also available as a node docker image: `docker pull darkriszty/prettify-md`.
43
+
42
44
Available features from docker:
43
45
- To prettify a file: `docker container run -i darkriszty/prettify-md < input.md`.
44
46
- To prettify a file and save the output: `docker container run -i darkriszty/prettify-md < input.md > output.md`.
45
47
- 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
48
47
49
## Extension Settings
48
50
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
+
The extension is available for markdown language mode. It can either prettify a selection (`Format Selection`) or the entire document (`Format Document`).
52
+
A VSCode command called `Prettify markdown tables` is also available to format the currently opened document.
51
53
52
54
Configurable settings:
53
55
- 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.
0 commit comments