add an interactive demo and tests to the underline extension

This commit is contained in:
Hans Pagel
2020-09-10 12:43:40 +02:00
parent 12116a65ec
commit 860b6385ad
7 changed files with 97 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
# Italic
This extension is used to render text in *italic*. If you pass `<em>`, `<i>` tags, or text with inline `style` attributes setting `font-style: italic` in the editors initial content, they all will be rendered accordingly.
Use this extension to render text in *italic*. If you pass `<em>`, `<i>` tags, or text with inline `style` attributes setting `font-style: italic` in the editors initial content, they all will be rendered accordingly.
::: warning Restrictions
The extension will generate the corresponding `<em>` HTML tags when reading contents of the `Editor` instance. All text marked italic, regardless of the method will be normalized to `<em>` HTML tags.