Giter VIP home page Giter VIP logo

atom-markdown-toc-auto's Introduction

markdown-toc-auto Build Status

Automatically update table of contents for GitHub wiki.

gif

Features

  • Insert TOC
  • Automatically update TOC on editor save.
  • Customizable max and min level of header to use. auto update, inlucde link or not.
  • Extract only markdown header by using Atom's scope descriptor used in syntax highlight(So ignore # in embedded code in markdown).
  • Generate link for GitHub wiki
    • Remove invalid char for link
    • Extract inner text(xxx) from <kbd>xxx</kbd> tag and use in link.

How to use

  1. Open markdown editor
  2. From command-palette, invoke "Markdown Toc Auto: Insert Toc". TOC is inserted at cursor position.
  3. Each time you save editor, TOC is automatically updated.
  4. [Optional] You can change following TOC options to control toc generation.
  • min, max: From min to max level headers are subject to generate.
  • update: If true, automatically updated on save.
  • link: If false, link are not generated.

Commands

  • markdown-toc-auto:insert-toc: Insert TOC on cursor position.
  • markdown-toc-auto:insert-toc-at-top: Insert TOC on top of buffer.

Limitation

  • Currently only source gfm editor is supported.
  • And only checked with GitHub Wiki.
  • Header style must start with #.

Why I created yet another package?

  • As exercise.
  • Wanted to correctly ignore embedded code's comment #.
  • Wanted to generate valid link in github wiki(for vim-mode-plus's wiki).

Similar project

atom-markdown-toc-auto's People

Contributors

darkdragon-001 avatar justinhartman avatar nemodreamer avatar t9md avatar thancock20 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.