-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* donot-change-case: (34 commits) Modify README according to @jonasbn's proposal Update changes Add test for 'lowercase' param Cleanup Update README Add 'lowercase' parameter Prepare for 2.6.0 Add 'Maintain the images in headings' section on README Change param name Recovering TestDefault Remove 'test_' prefix from test files Divide test files with each attributes Fix regex Cleanup - Fix same name function - Fix don't remove image in codeblock Revert "Allow list in args of log" Allow list in args of log Cleanup - Use uppercase in patterns - Cleanup global consts Unify to function escape_brackets ...
- Loading branch information
Showing
20 changed files
with
915 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MarkdownTOC - 2.6.0 | ||
|
||
CHANGES | ||
|
||
- Add `remove_image` parameter. Ref: #43 | ||
- Add `lowercase` parameter. Ref: #40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# coding:utf-8 | ||
from base import TestBase | ||
import sublime | ||
import sys | ||
|
||
class TestAutoanchor(TestBase): | ||
"""Test of attributes 'autoanchor'""" | ||
|
||
# for debug | ||
# def tearDown(self): | ||
# pass | ||
|
||
autoanchor_text = \ | ||
""" | ||
<!-- MarkdownTOC autolink=true {0} --> | ||
<!-- /MarkdownTOC --> | ||
# Changelog | ||
# Glossary | ||
# API Specification | ||
""" | ||
def test_autoanchor_false(self): | ||
"""Default Auto Anchor is false""" | ||
body_txt = self.commonSetupAndUpdateGetBody(self.autoanchor_text.format('')) | ||
self.assert_NotIn('<a name="changelog"></a>', body_txt) | ||
self.assert_NotIn('<a name="glossary"></a>', body_txt) | ||
self.assert_NotIn('<a name="api-specification"></a>', body_txt) | ||
|
||
def test_autoanchor_true(self): | ||
body_txt = self.commonSetupAndUpdateGetBody(self.autoanchor_text.format('autoanchor=true')) | ||
self.assert_In('<a name="changelog"></a>\n# Changelog', body_txt) | ||
self.assert_In('<a name="glossary"></a>\n# Glossary', body_txt) | ||
self.assert_In('<a name="api-specification"></a>\n# API Specification', body_txt) | ||
|
||
def test_autoanchor_false(self): | ||
body_txt = self.commonSetupAndUpdateGetBody(self.autoanchor_text.format('autoanchor=false')) | ||
self.assert_NotIn('<a name="changelog"></a>', body_txt) | ||
self.assert_NotIn('<a name="glossary"></a>', body_txt) | ||
self.assert_NotIn('<a name="api-specification"></a>', body_txt) |
Oops, something went wrong.