Skip to content

bug: Jan fails to wrap entire html in a code block (user's prompt) #4968

@david-menloai

Description

@david-menloai

Jan version

v0.5.16

Describe the Bug

paste a random html file
e.g:

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
    <header>
        <h1>Welcome to My Website</h1>
        <p>A sample HTML document showcasing various HTML elements</p>
    </header>
    
    <nav>
        <a href="#home">Home</a>
        <a href="#about">About</a>
        <a href="#services">Services</a>
        <a href="#contact">Contact</a>
    </nav>
    
    <div class="container">
        <section id="home">
            <h2>Home</h2>
            <div class="card">
                <p>This is a sample HTML document that demonstrates various HTML elements and their structure.</p>
                <p>HTML (HyperText Markup Language) is the standard markup language for creating web pages.</p>
            </div>
        </section>
        
        <section>
            <h2>Video Example</h2>
            <video width="320" height="240" controls>
                <source src="movie.mp4" type="video/mp4">
                Your browser does not support the video tag.
            </video>
        </section>
    </div>
    
    <footer>
        <p>&copy; 2023 My Sample Website. All rights reserved.</p>
    </footer>
</body>
</html>

there are some tags which are not in the markdown block
Image

Steps to Reproduce

No response

Screenshots / Logs

No response

What is your OS?

  • MacOS
  • Windows
  • Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions