weituotian / md_numbered_headers

sublime text3 plugin for markdown, auto insert/update/remove header numbers
Apache License 2.0
9 stars 1 forks source link

"." after the last number #1

Open rscaputo opened 7 years ago

rscaputo commented 7 years ago

Hi, @weituotian, excellent tool to organize headers, thank you!

I'm not a developer and I just want to know how could I put a "." after every last number too? Is it possible? Could you show me how?

Thanks again!

weituotian commented 7 years ago

sorry for late reply, you could try Preference->Package Settings->Markdown Numbered Headers->Settings-Default

and you will see

{
  "h1": 0,
  "h2": 0,
  "h3": 0,
  "h4": 0,
  "h5": 0,
  "h6": 0,
  "depth":6,
  "dottype":"-",
  "logging": true
}

then change dottype from - to .

Kristinita commented 7 years ago

@weituotian, I think, that @rscaputo wants another option.

  1. If "dottype":"-",:
# 1 Sasha Amazing!

Any text.

### 1-1 Sasha Unbelievable!
  1. If "dottype":".",:
# 1 Sasha Amazing!

Any text.

### 1.1 Sasha Unbelievable!
  1. Expected behavior:
# 1. Sasha Amazing!

Any text.

### 1.1. Sasha Unbelievable!

It would be nice, if you add an option — dot after last number as in item «Expected behavior».

I'm sorry, I don't know rules of Chinese, but in Russian and English languages writer needs to be put a dot after number in header.

Thanks for a great plugin!

weituotian commented 7 years ago

@Kristinita thanks for your advice! i will add an option to decide add dot after last number or not! but i still need some time to do that.

Kristinita commented 7 years ago

@weituotian , thanks for responce! We will waiting this feature.

weituotian commented 7 years ago

@Kristinita i had added this feature to the plugin in this commit but i am confused about how to update the version number in sublime text3 package control