Coder Social home page Coder Social logo

markdown-toc's Introduction

Markdown TOC

Generate and update magically a table of contents based on the headlines of a parsed markdown file.

Table of Contents

Usage

Magic

Installation

apm install markdown-toc

Features

  • Auto linking via anchor tags, e.g. # A 1#a-1
  • Depth control [1-6] with depthFrom:1 and depthTo:6
  • Enable or disable links with withLinks:1
  • Refresh list on save with updateOnSave:1
  • Use ordered list (1. ..., 2. ...) with orderedList:0

Contributors

Thanks to all contributors for any fix or improvement, whether small or large.

Questions?

Don't be shy and feel free to contact me on Twitter.

License

The package is Open Source Software released under the MIT license.

markdown-toc's People

Contributors

betrue12 avatar brescia123 avatar chrisyip avatar jonaswisplinghoff avatar lanceplaine avatar nok avatar spjoe avatar tombyrer avatar wyster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

markdown-toc's Issues

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)

Code block comments treated as headings

Treats code block comments beginning with # as headings.

In the example below # this is a code comment not a heading is treated as a heading although it is inside a code block.

# App Development Guide

## Another Heading

Hello World

```bash
# this is a code comment not a heading
ls -al
```

## And one more heading

Goodbye

Package.getStylesheetsPath is deprecated

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (app.asar/src/package.js:460:9)
Package.getStylesheetPaths (app.asar/src/package.js:471:32)
Package.loadStylesheets (app.asar/src/package.js:453:38)

TOC rendered as code block in files without <h1>

If a TOC is added to a markdown file that is missing at least one first-level heading, the indentation of the list means it is interpreted as a code block and not rendered correctly.

This should probably be handled gracefully by default, but could also be addressed by a minimum depth option as described in #31.

NaN in orderedList

Thank you for good package!

I found NaN in orderedList as below:

<!-- TOC depthFrom:1 depthTo:2 withLinks:0 updateOnSave:1 orderedList:1 -->

1. A
    NaN. A-a
    NaN. A-b
2. B
    1. B-a
    2. B-b

<!-- /TOC -->

# A

## A-a

## A-b

# B

## B-a

## B-b

and it will be fixed as

# Toc.coffee
-indicesOfDepth = Array.apply(null, new Array(depthTo - depthFrom)).map(Number.prototype.valueOf, 0);
+indicesOfDepth = Array.apply(null, new Array(depthTo - depthFrom + 1)).map(Number.prototype.valueOf, 0);

Can I write PR?

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:458:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:469:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:451:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/usr/local/share/atom/resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/usr/local/share/atom/resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/usr/local/share/atom/resources/app.asar/src/package.js:453:38)
<unknown> (/usr/local/share/atom/resources/app.asar/src/package.js:183:19)
Package.measure (/usr/local/share/atom/resources/app.asar/src/package.js:163:15)
Package.load (/usr/local/share/atom/resources/app.asar/src/package.js:177:12)

not support setext-style head

Sample:

<!-- TOC depth:6 withLinks:1 updateOnSave:1 -->
- [Bar H1](#bar-h1)
    - [Bar h2](#bar-h2)
<!-- /TOC -->

Foo H1
=========

Foo H2
--------------

# Bar H1

## Bar h2

Fail to create toc for Foo H1 and Foo h2.

my env info

markdow toc package version: `0.2.1`
atom version: `0.153.0`
OS: OS X `10.10.1`

PS:

Space is missing

It seems every space is converted to -.

Markdown:

#### `TestCase::request($method, $argv, $params = [], $callable = null)`

Generated TOC:

- [`TestCase::request($method, $argv, $params = [], $callable = null)`](#testcaserequestmethod-argv-params-callable-null)

GitHub rendering:

#testcaserequestmethod-argv-params---callable--null

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:458:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:469:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:451:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)

Uncaught Error: This TextEditor has been destroyed

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.11
System: Ubuntu 15.04
Thrown From: markdown-toc package, v0.3.0

Stack Trace

Uncaught Error: This TextEditor has been destroyed

At /usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:773

Error: This TextEditor has been destroyed
  at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/usr/share/atom/resources/app.asar/src/display-buffer.js:1097:15)
  at Marker.module.exports.Marker.getHeadScreenPosition (/usr/share/atom/resources/app.asar/src/marker.js:179:33)
  at Cursor.module.exports.Cursor.getScreenPosition (/usr/share/atom/resources/app.asar/src/cursor.js:90:26)
  at Cursor.module.exports.Cursor.getScreenRange (/usr/share/atom/resources/app.asar/src/cursor.js:708:20)
  at Cursor.module.exports.Cursor.autoscroll (/usr/share/atom/resources/app.asar/src/cursor.js:713:51)
  at Selection.module.exports.Selection.autoscroll (/usr/share/atom/resources/app.asar/src/selection.js:951:28)
  at Selection.module.exports.Selection.clear (/usr/share/atom/resources/app.asar/src/selection.js:198:14)
  at Selection.module.exports.Selection.insertText (/usr/share/atom/resources/app.asar/src/selection.js:452:12)
  at /usr/share/atom/resources/app.asar/src/text-editor.js:745:29
  at /usr/share/atom/resources/app.asar/src/text-editor.js:787:29
  at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:768:18)
  at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1168:26)
  at /usr/share/atom/resources/app.asar/src/text-editor.js:781:24
  at TextEditor.module.exports.TextEditor.mergeSelections (/usr/share/atom/resources/app.asar/src/text-editor.js:2033:43)
  at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/usr/share/atom/resources/app.asar/src/text-editor.js:1999:35)
  at TextEditor.module.exports.TextEditor.mutateSelectedText (/usr/share/atom/resources/app.asar/src/text-editor.js:779:19)
  at TextEditor.module.exports.TextEditor.insertText (/usr/share/atom/resources/app.asar/src/text-editor.js:742:19)
  at TextEditor.object.(anonymous function) [as insertText] (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
  at Toc.module.exports.Toc.create (/home/darebeat/.atom/packages/markdown-toc/lib/Toc.coffee:31:13)
  at atom-workspace.atom.commands.add.markdown-toc:create (/home/darebeat/.atom/packages/markdown-toc/lib/markdown-toc.coffee:8:72)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:245:29)
  at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/share/atom/resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:245:29)
  at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:184:20)

Commands

     -4:28.8.0 markdown-toc:update (atom-text-editor.editor)
  4x -4:23.1.0 core:undo (atom-text-editor.editor.is-focused)
     -4:21.5.0 core:save (atom-text-editor.editor.is-focused)
     -3:58.6.0 core:move-up (atom-text-editor.editor.is-focused)
     -3:58.1.0 markdown-writer:insert-new-line (atom-text-editor.editor.is-focused)
     -3:57.4.0 core:move-up (atom-text-editor.editor.is-focused)
     -3:55.8.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -3:51.7.0 markdown-toc:create (atom-text-editor.editor)
     -0:14.2.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
     -0:11.6.0 core:save (atom-text-editor.editor.is-focused)
     -0:06.6.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:05.9.0 markdown-writer:insert-new-line (atom-text-editor.editor.is-focused)
     -0:05.2.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:03.5.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:00.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.7.0 markdown-toc:create (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "atom-material-ui",
      "monokai"
    ],
    "packagesWithKeymapsDisabled": [
      "color-picker"
    ],
    "disabledPackages": [
      "vim-mode",
      "flatten-json",
      "json-colorer",
      "json-converter",
      "json-schema",
      "language-mongodb",
      "merge-conflicts",
      "nodemon-atom",
      "pretty-json",
      "color-picker"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.28.12
atom-material-ui, v0.6.1
markdown-toc, v0.3.0
markdown-writer, v1.9.3
minimap, v4.13.3
monokai, v0.18.0
pigments, v0.15.0
tool-bar, v0.1.9

# Dev
No dev packages

Only work with one file at a time

For a unknown reason I can't use the markdown-toc plugin with multiples files at once.

The plugin works if I proceed the following way:

  • Open file 1
  • ✅ Use markdown-toc on file 1
  • Close file 1
  • Open file 2
  • ✅ Use markdown-toc on file 2
  • Close file 2
  • ...

The plugin doesn't work if I proceed the following way:

  • Open a folder with Atom
  • ✅ Use markdown-toc on file 1 (it's working)
  • 🐛 Use markdown-toc on file 2 (it doesn't work)

I use Atom 1.3.1 and Markdown TOC 0.4

Failed to activate the markdown-toc package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.0
System: Mac OS X 10.10.4
Thrown From: markdown-toc package, v0.2.1

Stack Trace

Failed to activate the markdown-toc package

At Cannot read property 'insertText' of undefined

TypeError: Cannot read property 'insertText' of undefined
    at Toc.module.exports.Toc.create (/Users/jbush/.atom/packages/markdown-toc/lib/Toc.coffee:33:25)
    at new Toc (/Users/jbush/.atom/packages/markdown-toc/lib/Toc.coffee:16:12)
    at Object.module.exports.activate (/Users/jbush/.atom/packages/markdown-toc/lib/markdown-toc.coffee:8:18)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:240:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:772:25
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:222:20)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:156:19)
    at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:70:30)

Commands

     -0:00.5.0 markdown-toc:toggle (atom-pane.pane.active)

Config

{
  "core": {}
}

Installed Packages

# User
markdown-toc, v0.2.1

# Dev
No dev packages

Generating TOC by starting parsing after toc tag

Actually i've got a markdown file like

# Title

## Summary

<!-- TOC depth:3 withLinks:0 updateOnSave:1 -->
- [Title](#title)
    - Summary
    - First Point
    - Second Point 
<!-- /TOC -->

---

## First Point

// some text

## Second Point 

// some text

But wanted to generate the TOC with data just after the TOC tag like that :

# Title

## Summary

<!-- TOC depth:3 withLinks:0 updateOnSave:1 -->
- First Point
- Second Point 
<!-- /TOC -->

---

## First Point

// some text

## Second Point 

// some text

is there any parameters to do this ?

Thank's

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (C:\Users\jledv_000\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:460:9)
Package.getStylesheetPaths (C:\Users\jledv_000\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:471:32)
Package.loadStylesheets (C:\Users\jledv_000\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:453:38)
<unknown> (C:\Users\jledv_000\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:185:19)
Package.measure (C:\Users\jledv_000\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:165:15)
Package.load (C:\Users\jledv_000\AppData\Local\atom\app-1.0.0\resources\app.asar\src\package.js:179:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (C:\Users\takama\AppData\Local\atom\app-0.210.0\resources\app.asar\src\package.js:460:9)
Package.getStylesheetPaths (C:\Users\takama\AppData\Local\atom\app-0.210.0\resources\app.asar\src\package.js:471:32)
Package.loadStylesheets (C:\Users\takama\AppData\Local\atom\app-0.210.0\resources\app.asar\src\package.js:453:38)
<unknown> (C:\Users\takama\AppData\Local\atom\app-0.210.0\resources\app.asar\src\package.js:185:19)
Package.measure (C:\Users\takama\AppData\Local\atom\app-0.210.0\resources\app.asar\src\package.js:165:15)
Package.load (C:\Users\takama\AppData\Local\atom\app-0.210.0\resources\app.asar\src\package.js:179:12)

Use another delimiter

I am using this plugin and https://github.com/travs/markdown-pdf/ to output some nice documents. However, markdown-pdf produces HTML and then convert the HTML to a PDF.

Since markdown-toc uses HTML comments (<!-- and -->) as delimiters, the Table of contents never appears in the PDF :(.

Would that be possible to use another delimiter (maybe let the user define it in the settings) ?

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/usr/share/atom/resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/usr/share/atom/resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/usr/share/atom/resources/app.asar/src/package.js:453:38)
<unknown> (/usr/share/atom/resources/app.asar/src/package.js:183:19)
Package.measure (/usr/share/atom/resources/app.asar/src/package.js:163:15)
Package.load (/usr/share/atom/resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (/opt/atom/resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/opt/atom/resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/opt/atom/resources/app.asar/src/package.js:453:38)
<unknown> (/opt/atom/resources/app.asar/src/package.js:185:19)
Package.measure (/opt/atom/resources/app.asar/src/package.js:165:15)
Package.load (/opt/atom/resources/app.asar/src/package.js:179:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the markdown-toc package

Package.getStylesheetsPath (C:\Users\Mateusz\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:460:9)
Package.getStylesheetPaths (C:\Users\Mateusz\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:471:32)
Package.loadStylesheets (C:\Users\Mateusz\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:453:38)
<unknown> (C:\Users\Mateusz\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:183:19)
Package.measure (C:\Users\Mateusz\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\Mateusz\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:177:12)

Underscore is gone

Markdown:

### `show_error()` and `show_404()`

Generated TOC:

[`show_error()` and `show_404()`](#showerror-and-show404)

GitHub rendering:

#show_error-and-show_404

Manage TOC:Toogle for multiple files in the same Window

Maybe I do not this right, but I am using Atom as a note editor and like the Markdown format :)

I open multiple note files and I would like to manage a TOC for each of this files.
Unfortunately I have to open a new window to be able to generate a TOC.

Can this be a feature or not ?

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.