From 0fdd9a757a79a919edfe4d0026ea8ae15818c9f0 Mon Sep 17 00:00:00 2001 From: Russell Bicknell Date: Fri, 20 Dec 2019 16:58:32 -0800 Subject: [PATCH] Fix an example in the docs index page. (#8) --- docs-src/index.md | 3 ++- docs/index.html | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs-src/index.md b/docs-src/index.md index c1464c2..c7fa056 100644 --- a/docs-src/index.md +++ b/docs-src/index.md @@ -58,7 +58,7 @@ import {html, render} from 'lit-html'; const name="lit-html"; render(html` -

This is a my-element>h2> +

This is a <my-element>

`, document.body); ``` @@ -66,6 +66,7 @@ render(html`
+

This is a <my-element>

diff --git a/docs/index.html b/docs/index.html index 400f29a..aeeb5eb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -52,10 +52,11 @@

<my-element> can be used with declarative rendering libraries like Angular, React, Vue, and lit-html

-
import {html, render} from 'lit-html';

const name="lit-html";

render(html`
<h2>This is a my-element>h2>
<my-element .name=${name}></my-element>
`
, document.body);
+
import {html, render} from 'lit-html';

const name="lit-html";

render(html`
<h2>This is a &lt;my-element&gt;</h2>
<my-element .name=${name}></my-element>
`
, document.body);
-

+

This is a <my-element>

+