Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodevx committed Sep 3, 2015
1 parent a824dff commit 3ae4c54
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,18 @@ it contains the suite of [default Prism themes](https://github.com/PrismJS/prism

Import the corresponding **markdown** and **highlight** style modules
***before*** importing `<zero-md>` via the usual `<link rel="import" href="...">`
syntax.
syntax. For example,

```html
<!-- Load both markdown and highlight themes first -->
<link rel="import" href="bower_components/zero-md/markdown-theme/default.html">
<link rel="import" href="bower_components/zero-md/highlight-theme/default.html">
<!-- Then load <zero-md> component -->
<link rel="import" href="bower_components/zero-md/zero-md.html">
```

Building your own theme? `<zero-md>` loads styles at element creation time
using:
using the new **style module** syntax:

```html
<style include="zero-md-markdown-theme"></style>
Expand Down Expand Up @@ -119,6 +127,9 @@ And finally import it:
</body>
```

Similarly, for **syntax highlighting** styling rules, create a `<dom-module>`
with an ID of `zero-md-highlight-theme`.


### Demo

Expand Down

0 comments on commit 3ae4c54

Please sign in to comment.