Index: trunk/parsers/wikidom/demos/hype/es.js |
— | — | @@ -19,8 +19,102 @@ |
20 | 20 | } |
21 | 21 | }, |
22 | 22 | { |
| 23 | + 'type': 'heading', |
| 24 | + 'attributes': { 'level': 2 }, |
| 25 | + 'content': { |
| 26 | + 'text': 'This is a heading (level 2)', |
| 27 | + 'annotations': [ |
| 28 | + { |
| 29 | + 'type': 'italic', |
| 30 | + 'range': { |
| 31 | + 'start': 10, |
| 32 | + 'end': 17 |
| 33 | + } |
| 34 | + } |
| 35 | + ] |
| 36 | + } |
| 37 | + }, |
| 38 | + { |
| 39 | + 'type': 'heading', |
| 40 | + 'attributes': { 'level': 3 }, |
| 41 | + 'content': { |
| 42 | + 'text': 'This is a heading (level 3)', |
| 43 | + 'annotations': [ |
| 44 | + { |
| 45 | + 'type': 'italic', |
| 46 | + 'range': { |
| 47 | + 'start': 10, |
| 48 | + 'end': 17 |
| 49 | + } |
| 50 | + } |
| 51 | + ] |
| 52 | + } |
| 53 | + }, |
| 54 | + { |
| 55 | + 'type': 'heading', |
| 56 | + 'attributes': { 'level': 4 }, |
| 57 | + 'content': { |
| 58 | + 'text': 'This is a heading (level 4)', |
| 59 | + 'annotations': [ |
| 60 | + { |
| 61 | + 'type': 'italic', |
| 62 | + 'range': { |
| 63 | + 'start': 10, |
| 64 | + 'end': 17 |
| 65 | + } |
| 66 | + } |
| 67 | + ] |
| 68 | + } |
| 69 | + }, |
| 70 | + { |
| 71 | + 'type': 'heading', |
| 72 | + 'attributes': { 'level': 5 }, |
| 73 | + 'content': { |
| 74 | + 'text': 'This is a heading (level 5)', |
| 75 | + 'annotations': [ |
| 76 | + { |
| 77 | + 'type': 'italic', |
| 78 | + 'range': { |
| 79 | + 'start': 10, |
| 80 | + 'end': 17 |
| 81 | + } |
| 82 | + } |
| 83 | + ] |
| 84 | + } |
| 85 | + }, |
| 86 | + { |
| 87 | + 'type': 'heading', |
| 88 | + 'attributes': { 'level': 6 }, |
| 89 | + 'content': { |
| 90 | + 'text': 'This is a heading (level 6)', |
| 91 | + 'annotations': [ |
| 92 | + { |
| 93 | + 'type': 'italic', |
| 94 | + 'range': { |
| 95 | + 'start': 10, |
| 96 | + 'end': 17 |
| 97 | + } |
| 98 | + } |
| 99 | + ] |
| 100 | + } |
| 101 | + }, |
| 102 | + { |
23 | 103 | 'type': 'paragraph', |
24 | | - 'content': { 'text': 'Test 1' } |
| 104 | + 'content': { |
| 105 | + 'text': 'In text display, line wrap is the feature of continuing on a new line when a line is full, such that each line fits in the viewable window, allowing text to be read from top to bottom without any horizontal scrolling.\nWord wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single word is longer than a line.', |
| 106 | + 'annotations': [ |
| 107 | + // 'In text display' should be bold |
| 108 | + { 'type': 'bold', 'range': { 'start': 0, 'end': 15 } }, |
| 109 | + // 'line wrap' should be italic |
| 110 | + { 'type': 'italic', 'range': { 'start': 17, 'end': 26 } }, |
| 111 | + // 'wrap is' should be a link to '#' |
| 112 | + { |
| 113 | + 'type': 'xlink', |
| 114 | + 'data': { 'href': '#' }, |
| 115 | + 'range': { 'start': 22, 'end': 29 } |
| 116 | + } |
| 117 | + ] |
| 118 | + } |
25 | 119 | }, |
26 | 120 | { |
27 | 121 | 'type': 'paragraph', |