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 original Markdown into Source text.
    2. Paste the revision into Compare with, or choose a second Markdown file.
    3. Read the hunk. A minus at the start of a patch line means removed. A plus means added.
    4. Check the columns: struck-through lines on the left, new lines on the right.

    What is Markdown diff?

    Markdown diff compares two documents as lines. A list item you rewrote is one removed line and one added line, and the heading above it stays, marked with a leading space in the patch. The left column shows the original with removals struck through. The right column shows the revision with the new lines. Compare with holds the second document, or you choose a second file.

    Read more

    The diff does not understand Markdown structure. A paragraph rewrapped to a different line length looks like a large edit even when the words are the same, because the line breaks moved. A changed heading is a changed line. Use this page for notes, lists, and docs. Use JSON diff when the file is JSON and key order should not count.

    Use cases

    • An editor compares two versions of a stock note and sees the list item that changed.
    • A documentation review checks a heading that stayed and a bullet that was renamed.
    • A writer confirms a blank line between a heading and a list is still in both versions.
    • Someone pasting from two drafts finds the one line that was added at the end.
    • A reviewer of a README uses the patch in a comment to point at the removed bullet.

    A list item renamed

    Original: # Stock - Pen Compare with: # Stock - Pencil

    @@ -1,3 +1,3 @@ # Stock -- Pen +- Pencil The heading and the blank line stayed. - Pen is marked removed. - Pencil is marked added. The leading hyphen of the list item is part of the line, separate from the patch's minus and plus.

    Why use Oddsock

    List items and headings are lines, so the patch points at the bullet you changed and leaves the heading unmarked when it stayed.

    Related tools

    Using this tool

    The whole line. - Pen is removed and - Pencil is added. The heading # Stock carries a leading space in the patch, meaning it was in both documents.