| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 <meta charset="UTF-8"> |
| 14 <title>marked-element demo</title> |
| 15 |
| 16 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 17 |
| 18 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 19 <link rel="import" href="../marked-element.html"> |
| 20 |
| 21 <style is="custom-style"> |
| 22 |
| 23 .centered { |
| 24 max-width: 550px; |
| 25 padding: 0; |
| 26 overflow: auto; |
| 27 } |
| 28 |
| 29 h1 { |
| 30 margin-left: 30px; |
| 31 } |
| 32 |
| 33 h3 { |
| 34 color: var(--google-grey-700); |
| 35 margin-left: 30px; |
| 36 } |
| 37 |
| 38 marked-element { |
| 39 display: block; |
| 40 background-color: var(--google-grey-100); |
| 41 padding: 10px 30px; |
| 42 margin-bottom: 10px; |
| 43 } |
| 44 |
| 45 </style> |
| 46 </head> |
| 47 |
| 48 <body unresolved> |
| 49 |
| 50 <div class="vertical-section vertical-section-container centered"> |
| 51 <h1><marked-element></h1> |
| 52 |
| 53 <section> |
| 54 <h3>Inline Text</h3> |
| 55 <marked-element> |
| 56 <script type="text/markdown"> |
| 57 ## Markdown Renderer |
| 58 |
| 59 Example: |
| 60 |
| 61 ```html |
| 62 <paper-toolbar> |
| 63 <paper-icon-button icon="menu"></paper-icon-button> |
| 64 <div class="title">Title</div> |
| 65 <paper-icon-button icon="more"></paper-icon-button> |
| 66 </paper-toolbar> |
| 67 ``` |
| 68 |
| 69 _Nifty_ features. |
| 70 </script> |
| 71 </marked-element> |
| 72 </section> |
| 73 |
| 74 <section> |
| 75 <h3>Text via Attribute</h3> |
| 76 <marked-element markdown="***Bold and italic***"></marked-element> |
| 77 </section> |
| 78 |
| 79 </div> |
| 80 |
| 81 </body> |
| 82 </html> |
| OLD | NEW |