Markdown is a writing shorthand. HTML is what a page can render. This page parses the Markdown and prints sanitized HTML. “Odd socks in the dryer.” becomes <p>Odd socks in the dryer.</p>. “**Odd** socks” becomes a paragraph with <strong>Odd</strong> and the rest as text. The tags are the result you copy.
Sanitizing is specific. Raw HTML in the Markdown is escaped, so a typed <script> does not become a script element. Images are replaced by their alt text. The image is not fetched. A link is kept only for http, https, and mailto. Anything else, including javascript:, leaves the label and drops the address. A kept link gets rel="noreferrer".
The preview frame on the page shows that HTML, and the string under it is what you copy. The frame itself turns anchors into spans so a click in the frame does nothing. The copied HTML still has the anchor. Markdown preview is the full-width reading view. The editor is the writing view. This page is the conversion.
Odd socks in the dryer.
<p>Odd socks in the dryer.</p> One paragraph. No script, no fetch. **Odd** in front of the same sentence would wrap Odd in <strong>.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
<p>Odd socks in the dryer.</p>. One paragraph, the period included, no extra wrapper you have to strip by hand.
No. Raw HTML is escaped. A typed script tag is text, not an element. The preview frame is sandboxed as well.
No. The image token becomes its alt text. The src is not requested and is not left in the HTML as an img tag.
http, https, and mailto, with rel="noreferrer". A javascript: link keeps the label and loses the address.
The frame rewrites anchors to spans so the preview cannot navigate. The HTML you copy still contains the anchor.