All Projects → darkriszty → Markdowntableprettify Vscodeext

darkriszty / Markdowntableprettify Vscodeext

Licence: mit
Visual Studio Code extension to prettify markdown tables.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Markdowntableprettify Vscodeext

Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (+862.96%)
Mutual labels:  markdown, vscode-extension, visual-studio-code
Vscode Markdownlint
Markdown linting and style checking for Visual Studio Code
Stars: ✭ 444 (+1544.44%)
Mutual labels:  markdown, vscode-extension, visual-studio-code
Marp Vscode
Marp for VS Code: Create slide deck written in Marp Markdown on VS Code
Stars: ✭ 442 (+1537.04%)
Mutual labels:  markdown, vscode-extension, visual-studio-code
Vscode Markdown Pdf
Markdown converter for Visual Studio Code
Stars: ✭ 571 (+2014.81%)
Mutual labels:  markdown, vscode-extension, visual-studio-code
Awesome Vscode
🎨 A curated list of delightful VS Code packages and resources.
Stars: ✭ 19,659 (+72711.11%)
Mutual labels:  vscode-extension, visual-studio-code
Code Settings Sync
🌴💪 Synchronize your Visual Studio Code Settings Across Multiple Machines using GitHub GIST 💪🌴
Stars: ✭ 3,754 (+13803.7%)
Mutual labels:  vscode-extension, visual-studio-code
Gistpad
VS Code extension for managing and sharing code snippets, notes and interactive samples using GitHub Gists
Stars: ✭ 443 (+1540.74%)
Mutual labels:  markdown, vscode-extension
vscode-less
🔌 Less intellisense for Variables and Mixins in all Less files.
Stars: ✭ 21 (-22.22%)
Mutual labels:  visual-studio-code, vscode-extension
Sts4
The next generation of tooling for Spring Boot, including support for Cloud Foundry manifest files, Concourse CI pipeline definitions, BOSH deployment manifests, and more... - Available for Eclipse, Visual Studio Code, and Theia
Stars: ✭ 490 (+1714.81%)
Mutual labels:  vscode-extension, visual-studio-code
Mdmath
LaTeX Math for Markdown inside of Visual Studio Code.
Stars: ✭ 675 (+2400%)
Mutual labels:  markdown, vscode-extension
Vscode Git Graph
View a Git Graph of your repository in Visual Studio Code, and easily perform Git actions from the graph.
Stars: ✭ 767 (+2740.74%)
Mutual labels:  vscode-extension, visual-studio-code
Vscode Restclient
REST Client Extension for Visual Studio Code
Stars: ✭ 3,289 (+12081.48%)
Mutual labels:  vscode-extension, visual-studio-code
Vscode Markdown Preview Enhanced
One of the "BEST" markdown preview extensions for Visual Studio Code
Stars: ✭ 701 (+2496.3%)
Mutual labels:  markdown, vscode-extension
Vscode Bookmarks
Bookmarks Extension for Visual Studio Code
Stars: ✭ 804 (+2877.78%)
Mutual labels:  vscode-extension, visual-studio-code
VSCode-Anywhere
VSCode with preconfigured tools for your programming languages : binaries, settings, extensions and documentations
Stars: ✭ 26 (-3.7%)
Mutual labels:  visual-studio-code, vscode-extension
Vscode Intelephense
PHP intellisense for Visual Studio Code
Stars: ✭ 872 (+3129.63%)
Mutual labels:  vscode-extension, visual-studio-code
swdc-vscode-100-days-of-code
A VS Code extension that helps you reach your goals in completing the 100 Days of Code challenge
Stars: ✭ 45 (+66.67%)
Mutual labels:  visual-studio-code, vscode-extension
c-cpp-project-generator
📂 Create C/C++ projects on vscode
Stars: ✭ 22 (-18.52%)
Mutual labels:  visual-studio-code, vscode-extension
Vscode Peacock
Subtly change the color of your Visual Studio Code workspace. Ideal when you have multiple VS Code instances, use VS Live Share, or use VS Code's Remote features, and you want to quickly identify your editor.
Stars: ✭ 690 (+2455.56%)
Mutual labels:  vscode-extension, visual-studio-code
Without Guns For Vs Code
Visual Studio Code extension that teaches you mindful programming
Stars: ✭ 14 (-48.15%)
Mutual labels:  vscode-extension, visual-studio-code

Markdown table prettifier

Test Status Visual Studio Code extension Docker image NPM package

Makes tables more readable for humans. Compatible with the Markdown writer plugin's table formatter feature in Atom.

Feature highlights

  • Remove redundant ending table border if the beginning has no border, so the table will not end with "|".
  • Create missing ending table border if the beginning already has a border, so the table will end with "|".
  • Save space by not right-padding the last column if the table has no border.
  • Support empty columns inside tables.
  • Support column alignment options with ":".
  • Find and format multiple tables.
  • Support indented tables.

Visual Studio Code

feature X

The extension is available for markdown language mode. It can either prettify a selection (Format Selection) or the entire document (Format Document). A VSCode command called Prettify markdown tables is also available to format the currently opened document.

Configurable settings:

  • The maximum texth length of a selection/entire document to consider for formatting. Defaults to 1M chars. (limit does not apply from CLI or NPM).
  • Keyboard shortcut to prettify the currently opened markdown document. Default: CTRL+ALT+M (CMD+ALT+M on Mac).

NPM

The core formatting logic is available as an NPM package: npm install --save markdown-table-prettify. The Typescript code is compiled down to ES5 and shipped inside the package.

It currently exposes the entry point also used by the CLI. It can be used from regular NodeJS or web apps:

import { CliPrettify } from 'markdown-table-prettify';
// or
const { CliPrettify } = require('markdown-table-prettify');

console.log(CliPrettify.prettify(
`hello|world
-|-
foo|bar`));

/* Output:
hello | world
------|------
foo   | bar
*/

Docker

The core formatting logic is available as a node docker image: docker pull darkriszty/prettify-md.

Available features from docker:

  • To prettify a file: docker container run -i darkriszty/prettify-md < input.md.
  • To prettify a file and save the output: docker container run -i darkriszty/prettify-md < input.md > output.md.
  • 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.

CLI

Formatting files or checking if they're already formatted is possible from the command line. This requires node and npm (optionally also npx).

Available features from the command line:

  • To prettify a file: npm run --silent prettify-md < input.md.
  • To prettify a file and save the output: npm run --silent prettify-md < input.md > output.md.
  • 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.

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.

Installation

To access the CLI, the extension can either be used from the Github sources, from the already instaledl VSCode extension or from NPM.

Compiling from the source code

  • Download the source code.
  • Go to the extension directory.
  • Run npm install.
  • Run npm run compile.

Using the already installed VSCode extension

Locate the installed extension path. The typical location of the installed extension:

  • Windows: %USERPROFILE%\.vscode\extensions\darkriszty.markdown-table-prettify-{version}
  • macOS: ~/.vscode/extensions/darkriszty.markdown-table-prettify-{version}
  • Linux: ~/.vscode/extensions/darkriszty.markdown-table-prettify-{version}

Getting it from NPM

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).

Known Issues

  • Tables with mixed character widths (eg: CJK) are not always properly formatted (issue #4).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].