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

fix section number plugin to handle html title with attribut #1385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VincentDary
Copy link

Hello,

I propose this fix to support title numbering of html title tag containing attributs. Actually there is weak parsing which does not handle this case, see the following section_number/section_number.py#L12. I have replaced the current parsing with a call to beautifulsoup parser and some logic to number titles and subtitles. As a result, the code is more compact, readable and solves this problem.

Sorry I don't have the time to incorporate this fix in the new plugin system, because that would mean writing a plugin via the new path, that's why I propose the fix on this repository. You are free to accept it.

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.

1 participant