Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR allows to handle the new note format for markdown files that GitHub provides. It also provides backwards compatibility for the old docs.
Before, when reading Markdown files on GitHub for our docs you saw these unformatted notes:
But GitHub has since adopted an official syntax for these notes. In laravel/docs#8092 I've updated all notes in the 9.x docs to the new syntax. Which makes them look like this:
Because of the new syntax, we need to adopt a new regex to parse them. That's what this PR does. At the same time I'm filtering on legacy versions to the old docs are unaffected.
Henceforth, the new syntax for writing notes in our docs will be:
And:
It's probably best to first merge the docs PR laravel/docs#8092 and then launch this PR with the new formatting. After merging the docs PR, it'll also need to be merged into master so the changes are applied there as well.