| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> | 9 --> |
| 10 <html> | 10 <html> |
| 11 <head> | 11 <head> |
| 12 | 12 |
| 13 <title></title> | 13 <title>marked-element demo</title> |
| 14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | 14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 15 <script src="../platform/platform.js"></script> | 15 <script src="../webcomponentsjs/webcomponents.js"></script> |
| 16 <link rel="import" href="marked-element.html"> | 16 <link rel="import" href="marked-element.html"> |
| 17 </head> | 17 </head> |
| 18 | 18 |
| 19 <body unresolved> | 19 <body unresolved> |
| 20 | 20 |
| 21 <h3>Inline Text</h3> | 21 <h3>Inline Text</h3> |
| 22 <hr> | 22 <hr> |
| 23 | 23 |
| 24 <marked-element> | 24 <marked-element> |
| 25 ## Markdown Renderer | 25 ## Markdown Renderer |
| 26 | 26 |
| 27 * implemented in `JavaScript` | 27 * implemented in `JavaScript` |
| 28 * realtime formatting | 28 * realtime formatting |
| 29 | 29 |
| 30 Example: | 30 Example: |
| 31 | 31 |
| 32 <div> | 32 <div> |
| 33 <polymer-overlay></polymer-overlay> | 33 <core-overlay> |
| 34 <h2>Dialog</h2> | 34 <h2>Dialog</h2> |
| 35 <input placeholder="say something..." autofocus> | 35 <input placeholder="say something..." autofocus> |
| 36 <div>I agree with this wholeheartedly.</div> | 36 <div>I agree with this wholeheartedly.</div> |
| 37 <button overlay-toggle>OK</button> | 37 <button core-overlay-toggle>OK</button> |
| 38 </core-overlay> |
| 38 </div> | 39 </div> |
| 39 | 40 |
| 40 _Nifty_ features. | 41 _Nifty_ features. |
| 41 </marked-element> | 42 </marked-element> |
| 42 | 43 |
| 43 <br> | 44 <br> |
| 44 | 45 |
| 45 <h3>Text via Attribute</h3> | 46 <h3>Text via Attribute</h3> |
| 46 <hr> | 47 <hr> |
| 47 | 48 |
| 48 <marked-element text=" <div>div</div>"></marked-js> | 49 <marked-element text=" <div>div</div>"></marked-element> |
| 49 | 50 |
| 50 </body> | 51 </body> |
| 51 </html> | 52 </html> |
| OLD | NEW |