Skip to content

Conversation

linawolf
Copy link
Contributor

@linawolf linawolf commented Feb 11, 2024

For now this only affects Mark Down Documents, we might want to remove the haky section handling in rest section handling

resolves #842

@linawolf linawolf marked this pull request as draft February 11, 2024 13:35
@linawolf linawolf force-pushed the bugfix/mdsections branch 2 times, most recently from 211e010 to ed95dc6 Compare February 17, 2024 09:45
@linawolf linawolf marked this pull request as ready for review February 17, 2024 09:52
@linawolf linawolf marked this pull request as draft February 17, 2024 09:52
@linawolf linawolf marked this pull request as ready for review February 17, 2024 09:52
@linawolf linawolf changed the title Bugfix/mdsections [TASK] handle section creation in NodeTransformer Feb 17, 2024
@linawolf linawolf requested a review from jaapio February 19, 2024 15:45
Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

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

This looks very good, I do like how the introduction of a class like this can have impact on how the AST looks like.

I do have some questions on how we might be able to improve the code a bit, By adding an early exit we might be able to make it a bit more readable, as what I understand the leaveNode is only applicable when the current node is a title node?

@jaapio jaapio enabled auto-merge February 22, 2024 16:19
@jaapio jaapio merged commit 387cbd8 into main Feb 22, 2024
@jaapio jaapio deleted the bugfix/mdsections branch February 22, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants