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

Allow :numbered: for {content} #1011

Open
dylanh724 opened this issue Jan 10, 2025 · 2 comments
Open

Allow :numbered: for {content} #1011

dylanh724 opened this issue Jan 10, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@dylanh724
Copy link

Describe the feature you'd like to request

Similar to {toctree}'s :numbered:, I'd absolutely love to see this for [local] {content}! Eg, 1-2-3 tutorial steps table of contents

Describe the solution you'd like

Simply allow :numbered: opt within a {content} directive

Describe alternatives you've considered

Manually adding my own table of contents instead of scalable autogen - not scalable, tedious, unnecessary

@dylanh724 dylanh724 added the enhancement New feature or request label Jan 10, 2025
@clivinn-shla81092
Copy link

Hello, we tried to solve the issue.

This is what we did:

This change adds the :numbered: option to the {content} directive, similar to how it works in {toctree}. It modifies the FigureMarkdown class to handle the new option and apply numbering to the content items.

You can review changes in this commit: clivinn-shla81092@6e4a139.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@dylanh724
Copy link
Author

Good bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants