yamth 0.1.1

Yet Another Markdown To HTML, A fast Markdown to HTML converter with live reload
<!DOCTYPE html><head><style>body {
    overflow-x: hidden;
    margin: 0;
    width: 50vw;
    padding: 2rem 25vw;
    font-family: Helvetica, Arial, sans-serif;
    background-color: hsl(225, 25%, 9.4%);
    color: #bcbdd0;
    font-size: 1.05rem;
    line-height: 1.7;
}
body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 25vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}
body::before {
    left: 0;
    background: linear-gradient(to right, hsl(225, 40%, 12%) 0%, transparent 100%);
}
body::after {
    right: 0;
    background: linear-gradient(to left, hsl(225, 40%, 12%) 0%, transparent 100%);
}
h1, h2, h3, h4, h5, h6 {
    color: #dde0f0;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
h1 { font-size: 2rem; border-bottom: 1px solid hsl(223, 28%, 21%); padding-bottom: 0.3rem; }
h2 { font-size: 1.5rem; }
p { margin: 0.8rem 0; }
a { color: #2b79a2; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    background-color: hsl(223, 28%, 21%);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}
pre {
    background-color: hsl(223, 28%, 21%);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 3px solid #2b79a2;
}
pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
}
ul, ol { padding-left: 1.5rem; }
li { margin: 0.3rem 0; }
hr {
    border: none;
    border-top: 1px solid hsl(223, 28%, 21%);
    margin: 2rem 0;
}
strong { color: #dde0f0; }</style><title>test.md</title></head><body><h1>My Test Document</h1>

<h2>Introduction</h2>

<p>This is a paragraph with <strong>bold text</strong> and <em>italic text</em> and also <code>inline code</code>.</p>

<h2>Lists</h2>

<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>

</ul>
<ol>
<li>First ordered item</li>
<li>Second ordered item</li>
<li>Third ordered item</li>

</ol>
<h2>Links and Rules</h2>

<p>Here is a <a href="https://www.google.com">link to Google</a></p>

<hr/>

<h2>Code Block</h2>
<pre><code>
def hello():
    print("Hello, World!")
</code></pre>

<h2>Another Section</h2>

<h3>A Subsection</h3>

<p>This is another paragraph to test that <strong>bold</strong> and <em>italic</em> can appear in the same line together.</p>
<script>
    const es = new EventSource('/reload');
    es.onmessage = () => location.reload();
</script>
</body>