Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render referenced components #5

Merged
merged 2 commits into from
May 14, 2024

Conversation

JeanMertz
Copy link
Collaborator

Referenced components weren't rendered correctly, regardless of their nesting level. This resolves that issue.

With this implementation, the affordances of components are embedded in the places from which they are referenced as-is. We can expand upon this to make them visually distinct, and/or make them collapseable (and possibly collapse them by default).

closes #3

Copy link

@parasyte parasyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question. Everything else looks good. Readable code, nice to see keeping up with the API docs.

Comment on lines -153 to -154
component_references: parse_component_references(chars)?,
affordances: parse_affordances(chars)?,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are parse_component_references and parse_affordances dead code now? I don't see any other references to them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Removed them.

@dcdpr dcdpr merged commit 600e588 into jean/fix-numbering May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants