-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adjust newline handling and code block formatting
This commit modifies the newline handling in the HTML parsing function, removing the replacement of newline characters with an empty string. This change allows for the correct parsing of multi-line code blocks. Additionally, the code block formatting in the markdown conversion function is adjusted. The newline character after the language specification in the markdown code block is removed, ensuring correct formatting of the output markdown. Lastly, the test for the code block conversion is updated to reflect these changes, now testing for a multi-line code block with correct formatting.
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 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