Skip to content

fix unist node handling #23

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

Merged
merged 2 commits into from
Nov 25, 2023
Merged

fix unist node handling #23

merged 2 commits into from
Nov 25, 2023

Conversation

azu
Copy link
Member

@azu azu commented Nov 25, 2023

remove unist package deps

unist definition will be changed in versions.

remove `unist` package deps
@azu azu added Type: Refactoring A code change that neither fixes a bug nor adds a feature Type: Bug Bug or Bug fixes and removed Type: Refactoring A code change that neither fixes a bug nor adds a feature labels Nov 25, 2023
const rawValue = container.raw as string | undefined;
const rawValue = "raw" in container ? container.raw : undefined;
Copy link
Member Author

@azu azu Nov 25, 2023

Choose a reason for hiding this comment

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

Unist Node does not have raw property.
Previously, it will throw type error.

@azu azu merged commit d7e7334 into master Nov 25, 2023
@azu azu deleted the improve-unist-handle branch November 25, 2023 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant