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

HTML inline style conversion #4

Open
letil opened this issue Oct 29, 2021 · 0 comments
Open

HTML inline style conversion #4

letil opened this issue Oct 29, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@letil
Copy link
Collaborator

letil commented Oct 29, 2021

<span style="color: red">I am red!</span>

generates

  span(style = "color: red"):
    text "I am red!"

but the correct is

  span(style = style({color: "red".kstring})):
    text "I am red!"

The generated nim file must auto import the karax/vstyles if needed

@letil letil added bug Something isn't working enhancement New feature or request labels Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant