Skip to content

Commit

Permalink
Merge pull request #54 from cfclrk/default-indentation
Browse files Browse the repository at this point in the history
Set default indentation to 2 spaces
  • Loading branch information
jcs090218 authored Nov 29, 2024
2 parents 6bcf212 + a98e1d1 commit ba74a85
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 121 deletions.
2 changes: 1 addition & 1 deletion markdown-toc.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Example: '-' for unordered lists or '1.' for ordered lists."
:group 'markdown-toc
:type 'string)

(defcustom markdown-toc-indentation-space 4
(defcustom markdown-toc-indentation-space 2
"Let the user decide the indentation level."
:group 'markdown-toc
:type 'integer)
Expand Down
240 changes: 120 additions & 120 deletions test/markdown-toc-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
(ert-deftest markdown-toc--to-markdown-toc ()
(should (equal "- [some markdown page title](#some-markdown-page-title)
- [main title](#main-title)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [another title](#another-title)
- [with](#with)
- [some](#some)
- [heading](#heading)"
- [with](#with)
- [some](#some)
- [heading](#heading)"
(markdown-toc--to-markdown-toc '((0 . "some markdown page title")
(0 . "main title")
(1 . "Sources")
Expand Down Expand Up @@ -120,16 +120,16 @@ NB-LINES-FORWARD is the number of lines to get back to."
**Table of Contents**
- [something](#something)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [[配置 SPF Sender Policy Framework 记录]](#配置-spf-sender-policy-framework-记录)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [[配置 SPF Sender Policy Framework 记录]](#配置-spf-sender-policy-framework-记录)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand Down Expand Up @@ -173,16 +173,16 @@ For this, you need to install a snippet of code in your emacs configuration file
- [something](#something-1)
- [something](#something-2)
- [something](#something-3)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [[配置 SPF Sender Policy Framework 记录]](#配置-spf-sender-policy-framework-记录)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [[配置 SPF Sender Policy Framework 记录]](#配置-spf-sender-policy-framework-记录)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand Down Expand Up @@ -229,7 +229,7 @@ For this, you need to install a snippet of code in your emacs configuration file
** foobar **
- [something](#something)
- [Sources](#sources)
- [Sources](#sources)
<!-- markdown-toc end -->
blahblah.
Expand All @@ -250,15 +250,15 @@ blahblah.
(should (equal "<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand Down Expand Up @@ -298,15 +298,15 @@ For this, you need to install a snippet of code in your emacs configuration file
**Table of Contents**
- [Packages](#packages)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -327,12 +327,12 @@ For this, you need to install a snippet of code in your emacs configuration file
"<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -359,15 +359,15 @@ For this, you need to install a snippet of code in your emacs configuration file
**Table of Contents**
- [Packages](#packages)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -390,12 +390,12 @@ For this, you need to install a snippet of code in your emacs configuration file
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -422,15 +422,15 @@ For this, you need to install a snippet of code in your emacs configuration file
**Table of Contents**
- [Packages](#packages)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -453,12 +453,12 @@ For this, you need to install a snippet of code in your emacs configuration file
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -482,16 +482,16 @@ For this, you need to install a snippet of code in your emacs configuration file
**Table of Contents**
- [something](#something)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [[配置 SPF Sender Policy Framework 记录]](#配置-spf-sender-policy-framework-记录)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [[配置 SPF Sender Policy Framework 记录]](#配置-spf-sender-policy-framework-记录)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand Down Expand Up @@ -535,15 +535,15 @@ For this, you need to install a snippet of code in your emacs configuration file
**Table of Contents**
- [Packages](#packages)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Melpa-stable](#melpa-stable)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand All @@ -566,12 +566,12 @@ For this, you need to install a snippet of code in your emacs configuration file
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand Down Expand Up @@ -643,12 +643,12 @@ For this, you need to install a snippet of code in your emacs configuration file
"<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
- [Melpa (~snapshot)](#melpa-snapshot)
- [Install](#install)
- [Load org-trello](#load-org-trello)
- [Alternative](#alternative)
- [Git](#git)
- [Tar](#tar)
<!-- markdown-toc end -->
To install **org-trello** in your emacs, you need a few steps.
Expand Down Expand Up @@ -751,8 +751,8 @@ should not matter "))))
(with-temp-buffer
(insert "- [some markdown page title](#some-markdown-page-title)
- [main title](#main-title)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
- [Sources](#sources)
- [Marmalade (recommended)](#marmalade-recommended)
# main title
## Sources
Expand Down

0 comments on commit ba74a85

Please sign in to comment.