|
| 1 | +[ |
| 2 | + {"type":"GenericHeading","value":"# This is a heading!\n"}, |
| 3 | + {"type":"Text","value":"\n"}, |
| 4 | + {"type":"GenericHeading","value":"#This is also a heading!\n"}, |
| 5 | + {"type":"Text","value":"\nThis is some text. It is not special.\n\n"}, |
| 6 | + {"type":"GenericSubheading","value":"## Another heading\n"}, |
| 7 | + {"type":"Text","value":"\n"}, |
| 8 | + {"type":"GenericSubheading","value":"##yes, leading spaces are optional\n"}, |
| 9 | + {"type":"Text","value":"\n"}, |
| 10 | + {"type":"Keyword","value":"=\u003e"}, |
| 11 | + {"type":"Text","value":" "}, |
| 12 | + {"type":"NameAttribute","value":"gemini://geminiprotocol.net/docs/gemtext-specification.gmi"}, |
| 13 | + {"type":"Text","value":"\n\n"}, |
| 14 | + {"type":"Keyword","value":"=\u003e"}, |
| 15 | + {"type":"Text","value":" "}, |
| 16 | + {"type":"NameAttribute","value":"gemini://geminiprotocol.net/docs/gemtext-specification.gmi"}, |
| 17 | + {"type":"Text","value":" "}, |
| 18 | + {"type":"NameTag","value":"Here is a friendly link to the Gemtext specification"}, |
| 19 | + {"type":"Text","value":"\n\n"}, |
| 20 | + {"type":"Keyword","value":"=\u003e"}, |
| 21 | + {"type":"Text","value":" "}, |
| 22 | + {"type":"NameAttribute","value":"https://geminiprotocol.net/docs/gemtext-specification.gmi"}, |
| 23 | + {"type":"Text","value":" "}, |
| 24 | + {"type":"NameTag","value":"gemini protocol isn't special for links"}, |
| 25 | + {"type":"Text","value":"\n\n"}, |
| 26 | + {"type":"Keyword","value":"=\u003e"}, |
| 27 | + {"type":"Text","value":" "}, |
| 28 | + {"type":"NameAttribute","value":"gemini://geminiprotocol.net/"}, |
| 29 | + {"type":"Text","value":"\t"}, |
| 30 | + {"type":"NameTag","value":"multiple kinds of whitespace"}, |
| 31 | + {"type":"Text","value":"\n\n"}, |
| 32 | + {"type":"Keyword","value":"=\u003e"}, |
| 33 | + {"type":"Text","value":" "}, |
| 34 | + {"type":"NameAttribute","value":"gemini://geminiprotocol.net/"}, |
| 35 | + {"type":"Text","value":"\t "}, |
| 36 | + {"type":"NameTag","value":"multiple whitespace between parts!"}, |
| 37 | + {"type":"Text","value":"\n\n"}, |
| 38 | + {"type":"Keyword","value":"=\u003e"}, |
| 39 | + {"type":"Text","value":" "}, |
| 40 | + {"type":"NameAttribute","value":"/foo/bar/baz.txt"}, |
| 41 | + {"type":"Text","value":" "}, |
| 42 | + {"type":"NameTag","value":"leading slash still counts"}, |
| 43 | + {"type":"Text","value":"\n\nLinks may also be closer together. Here are some examples from the spec:\n"}, |
| 44 | + {"type":"Keyword","value":"=\u003e"}, |
| 45 | + {"type":"Text","value":" "}, |
| 46 | + {"type":"NameAttribute","value":"gemini://example.org/"}, |
| 47 | + {"type":"Text","value":"\n"}, |
| 48 | + {"type":"Keyword","value":"=\u003e"}, |
| 49 | + {"type":"Text","value":" "}, |
| 50 | + {"type":"NameAttribute","value":"gemini://example.org/"}, |
| 51 | + {"type":"Text","value":" "}, |
| 52 | + {"type":"NameTag","value":"An example link"}, |
| 53 | + {"type":"Text","value":"\n"}, |
| 54 | + {"type":"Keyword","value":"=\u003e"}, |
| 55 | + {"type":"Text","value":" "}, |
| 56 | + {"type":"NameAttribute","value":"gemini://example.org/foo"}, |
| 57 | + {"type":"Text","value":"\t"}, |
| 58 | + {"type":"NameTag","value":"Another example link at the same host"}, |
| 59 | + {"type":"Text","value":"\n"}, |
| 60 | + {"type":"Keyword","value":"=\u003e"}, |
| 61 | + {"type":"Text","value":" "}, |
| 62 | + {"type":"NameAttribute","value":"foo/bar/baz.txt"}, |
| 63 | + {"type":"Text","value":"\t"}, |
| 64 | + {"type":"NameTag","value":"A relative link"}, |
| 65 | + {"type":"Text","value":"\n"}, |
| 66 | + {"type":"Keyword","value":"=\u003e"}, |
| 67 | + {"type":"Text","value":" \t"}, |
| 68 | + {"type":"NameAttribute","value":"gopher://example.org:70/1"}, |
| 69 | + {"type":"Text","value":" "}, |
| 70 | + {"type":"NameTag","value":"A gopher link"}, |
| 71 | + {"type":"Text","value":"\n\n"}, |
| 72 | + {"type":"Keyword","value":"=\u003e"}, |
| 73 | + {"type":"NameAttribute","value":"this"}, |
| 74 | + {"type":"Text","value":" "}, |
| 75 | + {"type":"NameTag","value":"shouldn't be a link, but it is. "}, |
| 76 | + {"type":"Text","value":"\n"}, |
| 77 | + {"type":"Keyword","value":"=\u003e"}, |
| 78 | + {"type":"NameAttribute","value":"gemini://example.org/"}, |
| 79 | + {"type":"Text","value":" "}, |
| 80 | + {"type":"NameTag","value":"the leading space is optional"}, |
| 81 | + {"type":"Text","value":"\n\n"}, |
| 82 | + {"type":"GenericSubheading","value":"### Why not try lists?\n"}, |
| 83 | + {"type":"Text","value":"\n\n"}, |
| 84 | + {"type":"GenericSubheading","value":"###spaces are still optional\n"}, |
| 85 | + {"type":"Text","value":"\n"}, |
| 86 | + {"type":"Keyword","value":"* "}, |
| 87 | + {"type":"Text","value":"This is a list item.\n"}, |
| 88 | + {"type":"Keyword","value":"* "}, |
| 89 | + {"type":"Text","value":"Here's another.\n"}, |
| 90 | + {"type":"Keyword","value":"* "}, |
| 91 | + {"type":"Text","value":" Still a list item!\n*This is not.\n** This is also not.\n*\tNeither is this.\n- Not a list item.\n - Not a list item.\n\n"}, |
| 92 | + {"type":"Keyword","value":"\u003e"}, |
| 93 | + {"type":"GenericEmph","value":" Someone said this.\n"}, |
| 94 | + {"type":"Text","value":"\n"}, |
| 95 | + {"type":"Keyword","value":"\u003e"}, |
| 96 | + {"type":"GenericEmph","value":"Someone also said this.\n"}, |
| 97 | + {"type":"Text","value":"\n"}, |
| 98 | + {"type":"LiteralString","value":"```\n"}, |
| 99 | + {"type":"Text","value":"This text is preformatted.\n\n# Hello, world!\n\nThis isn't to be treated as Gemtext:\n=\u003e gemini://example.com\n\n\u003e no one said this\n"}, |
| 100 | + {"type":"LiteralString","value":"```"}, |
| 101 | + {"type":"Text","value":"\n\n"}, |
| 102 | + {"type":"LiteralString","value":"```\n"}, |
| 103 | + {"type":"Text","value":"This is also plaintext\n"}, |
| 104 | + {"type":"LiteralString","value":"```"}, |
| 105 | + {"type":"Comment","value":"This text is ignored\n"}, |
| 106 | + {"type":"Text","value":"\n\n"}, |
| 107 | + {"type":"LiteralString","value":"```This is alt text\n"}, |
| 108 | + {"type":"Text","value":"This text is also preformatted.\n"}, |
| 109 | + {"type":"LiteralString","value":"```"}, |
| 110 | + {"type":"Comment","value":"this text is ignored.\n"}, |
| 111 | + {"type":"Text","value":"\n"}, |
| 112 | + {"type":"LiteralString","value":"```Art by Joan Stark of a camp site. A small tent faces a small campfire. There is a log nearby, perfect for sitting on. The initials \"jgs\" can be seen.\n"}, |
| 113 | + {"type":"Text","value":" ______\njgs / /\\\n / / \\\n /_____/----\\_ (\n \" \" ).\n _ ___ o (:') o\n (@))_)) o ~/~~\\~ o\n o o o\n"}, |
| 114 | + {"type":"LiteralString","value":"```"}, |
| 115 | + {"type":"Text","value":"\n\nSyntax highlighting may be applied to preformatted blocks:\n"}, |
| 116 | + {"type":"LiteralString","value":"```javascript\n"}, |
| 117 | + {"type":"Text","value":"\t"}, |
| 118 | + {"type":"NameOther","value":"column"}, |
| 119 | + {"type":"Punctuation","value":"."}, |
| 120 | + {"type":"NameOther","value":"substring"}, |
| 121 | + {"type":"Punctuation","value":"("}, |
| 122 | + {"type":"LiteralNumberInteger","value":"0"}, |
| 123 | + {"type":"Punctuation","value":","}, |
| 124 | + {"type":"NameOther","value":"num"}, |
| 125 | + {"type":"Punctuation","value":")"}, |
| 126 | + {"type":"Text","value":"\n"}, |
| 127 | + {"type":"LiteralString","value":"```"}, |
| 128 | + {"type":"Text","value":"\n\nThe spec says, \"Any text following the leading \"```\" of a preformat toggle line MUST be ignored by clients.\" So...\n"}, |
| 129 | + {"type":"LiteralString","value":"```\n```"}, |
| 130 | + {"type":"Comment","value":"this is a comment!\n"}, |
| 131 | + {"type":"Text","value":"wow, what WAS that??\n"} |
| 132 | +] |
0 commit comments