diff --git a/README.md b/README.md index d615a384..4718c79b 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,9 @@ import { RichText } from '@juliushaertl/vue-richtext' - username: `{ component: User, props: { username: 'Jane Doe' }` - Renders: `The file 'MyDocument' was added by Jane Doe` + +## Reference rendering + ## Documentation A full example is shown in the [documentation](https://juliushaertl.github.io/vue-richtext/) diff --git a/tests/richtext.spec.js b/tests/richtext.spec.js index 2cdb66f2..13c44e15 100644 --- a/tests/richtext.spec.js +++ b/tests/richtext.spec.js @@ -103,8 +103,10 @@ describe('Foo', () => { }) expect(wrapper.text()).toEqual('Testwith a link to https://example.com \n go visit it') - expect(wrapper.html()).toEqual(`
Testwith a link to https://example.com - go visit it
`) + expect(wrapper.html()).toEqual(`
+
Testwith a link to https://example.com + go visit it
+
`) expect(wrapper.find('a').attributes('href')).toEqual('https://example.com') })