ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Markdown Numbered Headers

by weituotian ST3

sublime text3 plugin for markdown, auto insert/update/remove header numbers

Details

Installs

  • Total 2K
  • Win 914
  • Mac 594
  • Linux 306
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 1 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

MD_numbered_headers

sublime text3 plugiin for markdown, auto insert/update/remove header numbers

inspired by MarkdownTOC, compatible with MarkdownTOC.

screenshot

1. install

  1. Preferences -> Browse Packages…
    screenshot

  2. git clone https://github.com/weituotian/md_numbered_headers.git

  3. then is ok

2. Quick Start

  1. Install the plugin
  2. Open your Markdown file
  3. Place the cursor at the position where you want to start to numbers headers
  4. Pick from menu: Tools > Markdown Numbered Headers > Insert / Update
  5. And the heders in the Markdown document was numbered
  6. Save the document and you are done
  7. Now you can go on and edit your document further

3. Configuration

You can use attributes to customize headres nums in a single Markdown document, but if you want to keep the same configuration accross multiple Markdown documents, you can configure your own defaults.

Pick: Sublime Text > Preferences > Package Settings > Markdown Numbered Headers > Settings - User

Example: MarkdownNumberedHeaders.sublime-settings

{
  "h1": 0,
  "h2": 0,
  "h3": 0,
  "h4": 0,
  "h5": 0,
  "h6": 0,
  "depth":6,
  "dottype":"-",
  "logging": true,
  "last_number_dot":"."
}
Name Values default means
h1,h2,h3,h4,h5,h6 integer 0 the start counting num in each num
depth integer 6 define which header level start with
dottype string - use to Separate header nums,like 1-2-3
logging boolean true show the runtime log
last_number_dot string . the last dot type, like 1-2-3. or 1-2-3-

4. changelog

  • v1.0.3 the plugin in the Package Controll, may be older then the lastest