Skip to content
OddsockLocal
Local
Source text

Notes

  • Red sock
  • Blue sock
  • 8 wordsRuns in this browser. Nothing is uploaded.

    How to use

    1. Paste the Markdown, or drop a Markdown file.
    2. Read the rendered frame for structure.
    3. Copy the HTML string if you need the tags. Anchors in the string are real. In the frame they are spans.
    4. Expect image URLs to become alt text, not requests.

    What is Markdown to HTML?

    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.

    Read more

    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.

    Use cases

    • A developer pasting a README paragraph into a sanitized HTML slot.
    • A writer checking that **Odd** became strong and the sentence stayed one paragraph.
    • A reviewer confirming a javascript: link did not keep its href.
    • A docs author who must not have the page fetch an image URL from the Markdown.
    • Someone comparing the copied tags with the frame, where links are shown as spans.

    A plain sentence to a paragraph

    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>.

    Why use Oddsock

    Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

    Related tools

    Using this tool

    <p>Odd socks in the dryer.</p>. One paragraph, the period included, no extra wrapper you have to strip by hand.