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

fixes issues #275 and #279 #281

Merged
merged 1 commit into from
Aug 18, 2023
Merged

fixes issues #275 and #279 #281

merged 1 commit into from
Aug 18, 2023

Conversation

finanalyst
Copy link
Collaborator

both issues stem from the same problem: text is included in a secondary file from a primary file from a level2 heading. But the section is terminated by a level1 heading, not a level2 heading. The fix is to look for leveln, n-1, n-2, n-3 headings. By specification of RakuDoc, only headings upto level 4 are distinguished. The regex should be made more generic, perhpas by recursion on level, decrementing it to 0, but I don't know how.

both issues stem from the same problem: text is included in a secondary file from a primary file from a level2 heading. But the section is terminated by a level1 heading, not a level2 heading. The fix is to look for leveln, n-1, n-2, n-3 headings. By specification of RakuDoc, only headings upto level 4 are distinguished.
The regex should be made more generic, perhpas by recursion on level, decrementing it to 0, but I don't know how.
@finanalyst finanalyst requested a review from coke August 12, 2023 18:25
@finanalyst
Copy link
Collaborator Author

@coke this fix is not related to any of the UX changes. Would you please review it, and authorise. It is a change to a Regex

@finanalyst finanalyst merged commit 3127319 into main Aug 18, 2023
1 check passed
@finanalyst finanalyst deleted the fix_dangling_text branch August 18, 2023 08:12
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.

None yet

2 participants