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

fix: support string and object for token.htmlStyle #28

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

Barbapapazes
Copy link
Contributor

@Barbapapazes Barbapapazes commented Nov 5, 2024

Hello 👋,

I discover that the property htmlStyle can be a string or an object. I don't know why so I ask to Anthony Fu: https://x.com/soubiran_/status/1853757167087628345

The answer:

The object syntax is now the recommended way and string syntax is legacy and will be removed in the next major version. For now, we need to support both.

see https://x.com/antfu7/status/1853759093321908615

I will investigate to try to understand because in this package, it is always a string but in the https://github.com/spatie/commonmark-shiki-highlighter package, it is an object.

I suspect the version of Shiki is related to this.

@Barbapapazes Barbapapazes marked this pull request as ready for review November 5, 2024 11:24
@Barbapapazes Barbapapazes changed the title fix: support string and object for htmlStyle fix: support string and object for token.htmlStyle Nov 5, 2024
@riasvdv riasvdv merged commit 05cbdd7 into spatie:main Nov 6, 2024
8 checks passed
@riasvdv
Copy link
Member

riasvdv commented Nov 6, 2024

Thanks!

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.

2 participants