From 580e01333b9b848d048dee820eeb5ffaf12574fa Mon Sep 17 00:00:00 2001 From: Jeroen akkerman Date: Thu, 1 May 2025 18:44:49 +0200 Subject: [PATCH] Update readme of v3 branch --- README.md | 7 +++--- src/easymde.ts | 1 + test/screenshot.html | 54 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 test/screenshot.html diff --git a/README.md b/README.md index 96a4757..d58275c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # EasyMDE - Markdown Editor -[![npm version](https://img.shields.io/npm/v/easymde.svg?style=for-the-badge)](https://www.npmjs.com/package/easymde) -[![npm version](https://img.shields.io/npm/v/easymde/next.svg?style=for-the-badge)](https://www.npmjs.com/package/easymde/v/next) -[![Build Status](https://img.shields.io/github/actions/workflow/status/ionaru/easy-markdown-editor/cd.yaml?branch=master&style=for-the-badge)](https://github.com/Ionaru/easy-markdown-editor/actions?query=branch%3Amaster) +[![npm @v3-alpha version](https://img.shields.io/npm/v/easymde/v3-alpha.svg?style=for-the-badge)](https://www.npmjs.com/package/easymde/v/v3-alpha) +[![Build Status](https://img.shields.io/github/actions/workflow/status/ionaru/easy-markdown-editor/alpha.yaml?branch=v3&style=for-the-badge)](https://github.com/Ionaru/easy-markdown-editor/actions?query=branch%3Av3) > This repository is a fork of > [SimpleMDE, made by Sparksuite](https://github.com/sparksuite/simplemde-markdown-editor/). @@ -18,7 +17,7 @@ The editor is entirely customizable, from theming to toolbar buttons and javascr [**Try the demo**](https://stackblitz.com/edit/easymde) -[![Preview](https://user-images.githubusercontent.com/3472373/51319377-26fe6e00-1a5d-11e9-8cc6-3137a566796d.png)](https://stackblitz.com/edit/easymde) +[![Preview](https://github.com/user-attachments/assets/54fcc425-39cd-462f-aaa3-934524c49fd6)](https://stackblitz.com/edit/easymde) ## Quick access diff --git a/src/easymde.ts b/src/easymde.ts index b3ff309..69ca55c 100644 --- a/src/easymde.ts +++ b/src/easymde.ts @@ -128,6 +128,7 @@ export class EasyMDE { state: EditorState.create({ doc: this.#element.value, extensions: [ + EditorView.lineWrapping, syntaxHighlighting(highlightStyle), syntaxHighlighting(defaultHighlightStyle), markdown({ diff --git a/test/screenshot.html b/test/screenshot.html new file mode 100644 index 0000000..0026d6e --- /dev/null +++ b/test/screenshot.html @@ -0,0 +1,54 @@ + + + + + + + Document + + + + + + + + + + + +