-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I should have reflected more when the compiler told me there was dead code if the Markdown feature wasn't enabled around the `SemanticSplitPosition`. I was trying to overfit too much structure in order to reuse one loop. This was already vastly different between text and markdown, and made the code harder to reason about. Just split the two implementations, and also got rid of the `Level` trait which I also didn't feel great about because the methods there were only ever really needed for Markdown anyway.
- Loading branch information
Showing
3 changed files
with
151 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters