Open, then save, side by side
| Editor | Edits | Open, then save | Diff lines |
|---|---|---|---|
| OpenMarkdown@openmarkdown-dev/editor f897917 (unpublished) | the text | Byte-identical | 0 |
| Atomic Editor@atomic-editor/editor 0.6.2 | the text | Byte-identical | 0 |
| Milkdown Crepe@milkdown/crepe 7.22.3 | a tree | 13 of 22 changed, 2 lost | 30 |
| Toast UI Editor@toast-ui/editor 3.2.2 | a tree | 15 of 22 changed, 8 lost | 40 |
| Tiptap@tiptap/markdown 3.32.0 | a tree | 17 of 22 changed, 3 lost | 41 |
| MDXEditor@mdxeditor/editor 4.3.3 | a tree | Refused the file: a reference link stopped its parser | — |
Atomic Editor ties with us: it also edits the text. The test file uses valid but uncommon syntax on purpose.
How we tested →Put it on a page
<div id="editor"></div>
<script type="module">
import { createEditorState, mountEditor } from "https://esm.sh/@openmarkdown-dev/editor@0.2.1";
const editor = mountEditor(
document.getElementById("editor"),
createEditorState({ doc: "# Hello\n\nStart typing.\n" }),
);
// editor.getDoc() returns the Markdown, byte for byte.
</script>Using it? Add yourself to ADOPTERS.md