From 2d4f8cd3a6dc48624d3dc4d3e9a4800abe12221f Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 10 Sep 2020 12:31:26 +0200 Subject: [PATCH] switch to single tilde syntax --- docs/src/demos/Extensions/Strike/index.spec.js | 2 +- docs/src/docPages/api/extensions/strike.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/demos/Extensions/Strike/index.spec.js b/docs/src/demos/Extensions/Strike/index.spec.js index 31e421c6..4c931953 100644 --- a/docs/src/demos/Extensions/Strike/index.spec.js +++ b/docs/src/demos/Extensions/Strike/index.spec.js @@ -32,7 +32,7 @@ context('/api/extensions/strike', () => { it('should make a striked text from the markdown shortcut', () => { cy.get('.ProseMirror') - .type('~~Strike~~', {force: true}) + .type('~Strike~', {force: true}) .contains('s', 'Strike') }) }) diff --git a/docs/src/docPages/api/extensions/strike.md b/docs/src/docPages/api/extensions/strike.md index 57b5096d..902946d7 100644 --- a/docs/src/docPages/api/extensions/strike.md +++ b/docs/src/docPages/api/extensions/strike.md @@ -1,7 +1,7 @@ # Strike This extension is used to render ~~striked text~~. If you pass ``, ``, `` tags, or text with inline `style` attributes setting `text-decoration: line-through` in the editor’s initial content, they all will be rendered accordingly. -Type `~~two tildes~~` and the it will be magically ~~striked through~~ while you type. +Type `~text between tildes~` and it will be magically ~~striked through~~ while you type. ::: warning Restrictions The extension will generate the corresponding `` HTML tags when reading contents of the `Editor` instance. All text striked through, regardless of the method will be normalized to `` HTML tags.