GithubHelp home page GithubHelp logo

snuupy / atom-mdtoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcpride/atom-mdtoc

1.0 1.0 0.0 397 KB

Generate a markdown TOC (table of contents) in atom editor using Markdown-TOC and Remarkable from Jon Schlinkert.

License: MIT License

CoffeeScript 100.00%

atom-mdtoc's Introduction

atom-mdtoc: A Markdown TOC package for Atom

Generate a markdown TOC (table of contents) in atom editor using Markdown-TOC and Remarkable.

screenshot

Table Of Contents

  1. Installation
  2. Features
     2.1. Example (this Table Of Contents)
  3. Contributing
  4. Author
  5. License
  6. Repeated heading example
     6.1. Heading
      6.1.1. Sub-heading
       6.1.1.1. Sub-sub-heading
     6.2. Heading
      6.2.1. Sub-heading
       6.2.1.1. Sub-sub-heading
     6.3. Heading
      6.3.1. Sub-heading
       6.3.1.1. Sub-sub-heading

Installation

apm install atom-mdtoc

Features

  • Auto linking via anchor tags
  • Depth control e.g. maxDepth:6
  • Refresh list on save with updateOnSave:1 (disable with updateOnSave:0)
  • Exclude the first h1-level heading in a file with firsth1:0 (include with firsth1:1)
  • Use spaces instead of bullets with bullets:0 (use bullets with bullets:1)
  • Use a flatten list instead of a tree with flatten:1 (use tree with flatten:0)
  • Header numbering with numbering:1 (disable with numbering:0)
  • Works with repeated headings (see also this Table Of Contents)

Example (this Table Of Contents)

  <!-- MDTOC maxdepth:6 firsth1:0 numbering:1 flatten:0 bullets:1 updateOnSave:0 -->

  - 1. [Installation](#installation)   
  - 2. [Features](#features)   
     - 2.1. [Example (this Table Of Contents)](#example-this-table-of-contents)   
  - 3. [Contributing](#contributing)   
  - 4. [Author](#author)   
  - 5. [License](#license)   
  - 6. [Repeated heading example](#repeated-heading-example)   
     - 6.1. [Heading](#heading)   
        - 6.1.1. [Sub-heading](#sub-heading)   
           - 6.1.1.1. [Sub-sub-heading](#sub-sub-heading)   
     - 6.2. [Heading](#heading-1)   
        - 6.2.1. [Sub-heading](#sub-heading-1)   
           - 6.2.1.1. [Sub-sub-heading](#sub-sub-heading-1)   
     - 6.3. [Heading](#heading-2)   
        - 6.3.1. [Sub-heading](#sub-heading-2)   
           - 6.3.1.1. [Sub-sub-heading](#sub-sub-heading-2)   

  <!-- /MDTOC -->

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Marco Stolze

License

Copyright © 2016 Marco Stolze. Released under the MIT license.

Repeated heading example

Heading

This is a heading

Sub-heading

This is an sub heading

Sub-sub-heading

This is a sub sub heading

Heading

This is a heading

Sub-heading

This is a sub heading

Sub-sub-heading

This is a sub sub heading

Heading

This is a heading

Sub-heading

This is a sub heading

Sub-sub-heading

This is a sub sub heading

atom-mdtoc's People

Contributors

dvcrn avatar mcpride avatar

Stargazers

 avatar

Watchers

 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.