tht13 / html-preview-vscode

A HTML previewer for Visual Studio Code
MIT License
44 stars 22 forks source link

Failed to preview after adding blank lines in HTML inline CSS #83

Open wyatt-wong opened 4 months ago

wyatt-wong commented 4 months ago

I found that after adding blank lines in HTML inline CSS, the HTML preview function failed to work, here is the sample code:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Test</title>
        <style>
            /* Inline CSS */
            .css1 { color : green; }
            /* ADD BLANK LINE HERE */
            .css2 { color : blue; }
        </style>
    </head>
<body>
<span class="css1">Statement1</span>
<span class="css2">Statement2</span>
</body>
</html>

Can you please confirm this ?

wyatt-wong commented 4 months ago

It seems that the html preview to work under certain situations.