microsoft / genaiscript

Generative AI Scripting
https://microsoft.github.io/genaiscript/
MIT License
81 stars 22 forks source link

Markdown improvement #547

Closed pelikhan closed 2 weeks ago

pelikhan commented 2 weeks ago

These changes seem to focus on improving the readability and user experience of script outputs and Github pull request descriptions.

generated by pr-describe

github-actions[bot] commented 2 weeks ago

LGTM :rocket:

The changes in GIT_DIFF show that a new function eatTooManyNewlines has been added to the markdown.ts file. This function takes a string as input and replaces instances of three or more consecutive newline characters with two newline characters.

This function is then used in the prettifyMarkdown function to ensure that the Markdown text doesn't have too many successive newline characters.

The update to the github.ts file shows the prettifyMarkdown function being used to format the text of a pull request description.

These changes improve the readability of the generated Markdown and pull request descriptions by eliminating excessive whitespace.

I didn't find any functional issues with these changes. :+1:

generated by pr-review