Giter VIP home page Giter VIP logo

atom-markdown-table-formatter's Introduction

Markdown Table Formatter

A simple markdown plugin to format tables.

Based on the awesome Improved Markdown table commands for TextMate work from Dr. Drang (@drdrang)

Changelog

Usage

There are two basic ways of using this plugin.

  1. Select the table you want to format and then hit alt-shift-T to format it.
  2. If you didn't select any table the entire document (default) will be scanned, by the plugin, for tables and format all of them.

Settings & Keybindings

Settings image

Tips

Using with language-markdown package

Since language-markdown is a community package, auto-formatting entire document is not supported out-of-the box, but that is easy to fix, see next tip.

Enable Markdown Table Formatter for the current file type

To enable Markdown Table Formatter for your current file type: put your cursor in the file, open the Command Palette โŒ˜ (CMD)+โ‡ง (SHIFT)+P, and run the Markdown Table Formatter: Enable For Current Scope command. This will add grammar scope from current editor to the list of scopes in the settings for the Markdown Table Formatter package. You can edit this setting manually later if you want to.

Formatting selection should work regardless though.

How to style the tables correctly if you use non-monospace fonts

Pre Atom-1.13:

atom-text-editor::shadow .table.gfm {
    font-family: monospace;
}

Post Atom-1.13:

atom-text-editor .syntax--table.syntax--gfm {
    font-family: monospace;
}

atom-markdown-table-formatter's People

Contributors

ericyangpan avatar fcrespo82 avatar lierdakil avatar matthewdordal avatar mduo13 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.