Skip to content
OddsockLocal
Local
Source text

Notes

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

    How to use

    1. Type in the box, or drop a Markdown or text file.
    2. Watch the preview update as the source changes.
    3. Treat the frame as a picture. Links there do not navigate.
    4. Copy the HTML string if the next step needs tags. Copy the source if the next step needs Markdown.

    What is Markdown editor?

    The editor is where the sentence is still being written. You type Markdown in the box and the preview renders it beside the work: “Odd socks in the dryer.” shows as a paragraph, and the HTML under the render is <p>Odd socks in the dryer.</p>. “**Odd**” becomes a strong element. The point of this page, as against the full-width preview, is that the source and the render stay on screen together while you change a word.

    Read more

    The render is sanitized the same way as Markdown to HTML. A typed script tag is escaped text, not a running script. An image becomes its alt text and is not fetched. A javascript: link loses its address. An http or https link is kept in the HTML you can copy, with rel="noreferrer", and the on-page frame turns anchors into spans so a click in the frame does not navigate.

    A Markdown file or a plain text file can be dropped in. The formatter is the page that rewrites bullets and blank lines in the source. This page does not reformat the source. It shows what the source means. The preview page is the one laid out for reading a finished file at full width.

    Use cases

    • A writer drafting a note and checking that **bold** landed.
    • A developer confirming a pasted script tag stayed text.
    • A student learning Markdown on one sentence before adding a heading.
    • A docs editor who wants the source and the paragraph in view at the same time.
    • Someone who will later copy the HTML, and needs the anchor to still be in the string.

    One sentence in the writing box

    Odd socks in the dryer.

    A paragraph in the preview, and the HTML <p>Odd socks in the dryer.</p>. No image request, no script.

    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

    A single paragraph. The HTML is <p>Odd socks in the dryer.</p>, period included.