Skip to content

Typogriphy 2.0.7 breaks styles inside body #54

@matclab

Description

@matclab

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions