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 changes the format of the meta data written to the top of document files.
The point of the change is to make the format easier to parse and extend. Currently, the single line is getting a bit information dense and there are a few pitfalls and limitations to parsing it. Especially since it contains user controlled data (the document label).
The new format changes the format to a label/value style where the first N characters can be checked, and the remainder of the line be treated as the value, regardless of content.
The previous format was:
The new format is:
Any line starting with
%%~
will not be loaded as text (although only the first 10 lines are considered). Also, any line that does start with those characters, but don't match any of the above keywords, like%%~name:
, will be discarded.As a bonus, the new format is also more human readable.