Skip to content

Commit

Permalink
updated examples in dev/index.html and README
Browse files Browse the repository at this point in the history
  • Loading branch information
therealadityashankar authored and evanplaice committed Jul 3, 2020
1 parent 09a6db9 commit 206b7f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ Try it on [WebComponents.dev](https://webcomponents.dev/edit/FxoojbLdYqBJVJj4Tse

```html
<wc-markdown>
## Inline Markdown
<script type="wc-content">
## Inline Markdown
This some sample markdown.
This some sample markdown.
</script>
</wc-markdown>
```
*Note: HTML special chars (ex `<`, `>`) need to be escaped to prevent them from being interpreted as HTML.*
*Note: The </script> word cannot be used inside here, you'll have to use the escaped &lt;/script&gt; version instead, you may also use &lt;script&gt; for the opening <script> tag if you wish to*

### Syntax Highlighting

Expand Down
4 changes: 2 additions & 2 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

<wc-markdown>
<script type="wc-content">
## Inline Markdown
## Inline Markdown

This sample is loaded from the `innerHTML` of the `<wc-markdown>` tag, via an inline script
This sample is loaded from the `innerHTML` of the `<wc-markdown>` tag, via an inline script
</script>
</wc-markdown>

Expand Down

0 comments on commit 206b7f6

Please sign in to comment.