This repository has been archived by the owner on Aug 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
85 lines (58 loc) · 2.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><juicy-markdown></title>
<!-- Importing Web Component's Polyfill -->
<script src="../webcomponentsjs/webcomponents.js"></script>
<!-- Importing Custom Elements -->
<link rel="import" href="juicy-markdown.html">
</head>
<body>
<a href="https://github.com/Juicy/juicy-markdown"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 9;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<!-- Using Custom Elements -->
<juicy-markdown value="# <juicy-markdown>
> Polymer Element with GitHub Flavored Markdown (GFM) viewer
## Demo:
```html
<juicy-markdown value="# <juicy-markdown>
> Polymer Element with GitHub Flavored Markdown (GFM) viewer
## Demo: ...
"></juicy-markdown>
```
Entire page is a content of the <juicy-markdown>, check the source!
## Install
Install the component using [Bower](http://bower.io/):
```sh
$ bower install juicy-markdown --save
```
Or [download as ZIP](https://github.com/Juicy/juicy-markdown/archive/polymer_1.0.zip).
## Usage
1. Import Web Components' polyfill:
```html
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
```
2. Import Custom Element:
```html
<link rel="import" href="bower_components/juicy-markdown/juicy-markdown.html">
```
3. Start using it!
```html
<juicy-markdown value="# Markdown here"></juicy-markdown>
```
## Options
Attribute | Options | Default | Description
--- | --- | --- | ---
`value` | *string* | `` | Markdown to render.
`ghcss` | *boolean* | `false` | Should ghithub-markdown.css be imported?
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## History
For detailed changelog, check [Releases](https://github.com/Juicy/juicy-markdown/releases).
" ghcss></juicy-markdown>
</body>
</html>