Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add table-of-contents to troubleshooting #4234

Merged

Conversation

aslushnikov
Copy link
Contributor

Drive-by: teach our table-of-contents generator to ignore comments
inside fenced blocks and to de-linkify titles.

Drive-by: teach our table-of-contents generator to ignore comments
inside fenced blocks and to de-linkify titles.
@@ -156,6 +156,42 @@ describe('runCommands', function() {
#### page.$
#### page.$$`);
});
it('should work with code blocks', () => {
const source = new Source('doc.md', `<!-- gen:toc -->XXX<!-- gen:stop -->
### class: page
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove tabs here and below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's aligned with other tests :-) if you really want, I'll follow up for them all!

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.

2 participants