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 malformed section titles when multiple levels are added #135

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

BenCantCode
Copy link
Contributor

Previously, when changing the level of a section, adding additional =s to the end of a section title didn't take into account that the index of the end of the section title changes based on how many =s were added to the start of the section title. This created malformed section titles when doing things like section.level += 2.

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (4b235f3) to head (c55f4be).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #135   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         2232      2232           
=========================================
  Hits          2232      2232           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@5j9 5j9 merged commit 8e10db6 into 5j9:main Apr 19, 2024
20 checks passed
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