feat: support component, variant and links for raw file #263
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.
Preface:
I have read the contributing guidelines
Understood if the PR will be closed. I am creating this PR to share a code reference that supports the feature request highlighted in #262.
Summary
This PR will allow additional
CodeConnectJSON
attribute to be defined via frontmatter syntax in the raw file.Currently it is limited to the following properties only:
url
component
variant
links
This PR will add
yaml
as a dependencyUsage
Frontmatter is wrapped in comment block
Syntax highlighting in VS Code will not work correctly out of the box with the original suggested usage in #262
After wrapping in a comment block (changed in https://github.com/figma/code-connect/compare/8e2607ac42afbf6a47c86cc64310afb86872e752..b0088e339e6e613c65bbe3f5bbbc6aad7df534ef)
close #262