Skip to content

Conversation

@lucascool12
Copy link

Adjusts the regex in _h_tag_sub such that it doesn't keep matching the entire line if there is no whitespace.

Closes: #675

self.assertEqual(expected_toc_html, md.convert(html).toc_html)
test_toc_with_persistent_object.tags = ["toc", "issue208"]

def test_toc_with_inline_code(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test cases like this are usually implemented in test/tm-cases. You put the markdown in tm-cases/my_testcase.text, the expected HTML in tm-cases/my_testcase.html and any options passed to the Markown class in tm-cases/my_testcase.opts. Can also put any tags in a .tags file.
I think the only tests not implemented like that are ReDoS tests.

For consistency in testcase reporting and for what devs expect, probably best to follow that format

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@Crozzers
Copy link
Contributor

LGTM assuming the tests pass. @nicholasserra?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inline code in header with mixed header-ids causes hash entry in toc

2 participants