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

Typogriphy 2.0.7 breaks styles inside body #54

Open
matclab opened this issue Feb 5, 2021 · 0 comments
Open

Typogriphy 2.0.7 breaks styles inside body #54

matclab opened this issue Feb 5, 2021 · 0 comments

Comments

@matclab
Copy link

matclab commented Feb 5, 2021

In the following example, the color get mangled by typogriphy.
File typo.py:

from typogrify.filters import typogrify
print(typogrify("""
    <html>
    <head>
    </head>
    <body>
    <style>
      .rb {color:#B8797C; font-weight:bold; font-family: monospace;}
      .bb {color:#99BDC2; font-weight:bold; font-family: monospace;}
    </style>
    </body>
    </html>
    """))```

The result : `python /tmp/typo.py`
```html 
    <html>
    <head>
    </head>
    <body>
    <style>
      .rb {color:#<span class="caps">B8797C</span>; font-weight:bold; font-family: monospace;}
      .bb {color:#<span class="caps">99BDC2</span>; font-weight:bold; font-family: monospace;}
    </style>
    </body>
    </html>
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

No branches or pull requests

1 participant