diff options
| author | Georg Brandl <georg@python.org> | 2021-01-18 21:24:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-18 22:08:36 +0100 |
| commit | 2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch) | |
| tree | 809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/md | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/md')
| -rw-r--r-- | tests/lexers/md/example.txt | 456 |
1 files changed, 456 insertions, 0 deletions
diff --git a/tests/lexers/md/example.txt b/tests/lexers/md/example.txt new file mode 100644 index 00000000..aca9a769 --- /dev/null +++ b/tests/lexers/md/example.txt @@ -0,0 +1,456 @@ +---input--- +# this is a header + +## this is a 2nd level header + +* list item 1 + * list item 1.1 +* list item 2 +- list item 3 + +1. numbered list item 1 +1. numbered list item 2 + +- [ ] todo +- [x] done +- [X] done + +The following is italic: *italic* +The following is italic: _italic_ + +The following is not italic: \*italic\* +The following is not italic: \_italic\_ + +The following is not italic: snake*case*word +The following is not italic: snake_case_word + +The following is bold: **bold** **two or more words** +The following is bold: __bold__ __two or more words__ + +The following is not bold: snake**case**word +The following is not bold: snake__case__word + +The following is strikethrough: ~~bold~~ +The following is not strikethrough: snake~~case~~word + +The following is bold with italics inside: **the next _word_ should have been italics** + +> this is a quote + +> this is a multiline +> quote string thing + +this sentence `has monospace` in it + +this sentence @tweets a person about a #topic. + +[google](https://google.com/some/path.html) + + +[reference link][id] +[id]: http://example.com/ + +``` + * this is just unformated + __text__ +``` + +some other text + +```python +from pygments import token +# comment +``` + +some more text + +---tokens--- +'# this is a header' Generic.Heading +'\n' Text + +'\n' Text + +'## this is a 2nd level header' Generic.Subheading +'\n' Text + +'\n' Text + +'*' Keyword +' ' Text +'list' Text +' ' Text +'item' Text +' ' Text +'1' Text +'\n' Text + +' ' Text +'*' Keyword +' ' Text +'list' Text +' ' Text +'item' Text +' ' Text +'1.1' Text +'\n' Text + +'*' Keyword +' ' Text +'list' Text +' ' Text +'item' Text +' ' Text +'2' Text +'\n' Text + +'-' Keyword +' ' Text +'list' Text +' ' Text +'item' Text +' ' Text +'3' Text +'\n' Text + +'\n' Text + +'1.' Keyword +' ' Text +'numbered' Text +' ' Text +'list' Text +' ' Text +'item' Text +' ' Text +'1' Text +'\n' Text + +'1.' Keyword +' ' Text +'numbered' Text +' ' Text +'list' Text +' ' Text +'item' Text +' ' Text +'2' Text +'\n' Text + +'\n' Text + +'- ' Keyword +'[ ]' Keyword +' ' Text +'todo' Text +'\n' Text + +'- ' Keyword +'[x]' Keyword +' ' Text +'done' Text +'\n' Text + +'- ' Keyword +'[X]' Keyword +' ' Text +'done' Text +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'italic:' Text +' ' Text +'*italic*' Generic.Emph +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'italic:' Text +' ' Text +'_italic_' Generic.Emph +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'italic:' Text +' ' Text +'\\*' Text +'italic' Text +'\\*' Text +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'italic:' Text +' ' Text +'\\_' Text +'italic' Text +'\\_' Text +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'italic:' Text +' ' Text +'snake*case*word' Text +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'italic:' Text +' ' Text +'snake_case_word' Text +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'bold:' Text +' ' Text +'**bold**' Generic.Strong +' ' Text +'**two or more words**' Generic.Strong +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'bold:' Text +' ' Text +'__bold__' Generic.Strong +' ' Text +'__two or more words__' Generic.Strong +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'bold:' Text +' ' Text +'snake**case**word' Text +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'bold:' Text +' ' Text +'snake__case__word' Text +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'strikethrough:' Text +' ' Text +'~~bold~~' Generic.Deleted +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'not' Text +' ' Text +'strikethrough:' Text +' ' Text +'snake~~case~~word' Text +'\n' Text + +'\n' Text + +'The' Text +' ' Text +'following' Text +' ' Text +'is' Text +' ' Text +'bold' Text +' ' Text +'with' Text +' ' Text +'italics' Text +' ' Text +'inside:' Text +' ' Text +'**the next _word_ should have been italics**' Generic.Strong +'\n' Text + +'\n> ' Keyword +'this is a quote\n' Generic.Emph + +'\n> ' Keyword +'this is a multiline\n' Generic.Emph + +'> ' Keyword +'quote string thing\n' Generic.Emph + +'\n' Text + +'this' Text +' ' Text +'sentence' Text +' ' Text +'`has monospace`' Literal.String.Backtick +' ' Text +'in' Text +' ' Text +'it' Text +'\n' Text + +'\n' Text + +'this' Text +' ' Text +'sentence' Text +' ' Text +'@tweets' Name.Entity +' ' Text +'a' Text +' ' Text +'person' Text +' ' Text +'about' Text +' ' Text +'a' Text +' ' Text +'#topic' Name.Entity +'.' Text +'\n' Text + +'\n' Text + +'[' Text +'google' Name.Tag +']' Text +'(' Text +'https://google.com/some/path.html' Name.Attribute +')' Text +'\n' Text + +'![' Text +'Image of Yaktocat' Name.Tag +']' Text +'(' Text +'https://octodex.github.com/images/yaktocat.png' Name.Attribute +')' Text +'\n' Text + +'\n' Text + +'[' Text +'reference link' Name.Tag +']' Text +'[' Text +'id' Name.Label +']' Text +'\n' Text + +'[' Text +'id' Name.Label +']: ' Text +'http://example.com/' Name.Attribute +'\n' Text + +'\n```\n * this is just unformated\n __text__\n```\n' Literal.String.Backtick + +'\n' Text + +'some' Text +' ' Text +'other' Text +' ' Text +'text' Text +'\n' Text + +'\n```' Literal.String.Backtick +'python' Literal.String.Backtick +'\n' Text + +'from' Keyword.Namespace +' ' Text +'pygments' Name.Namespace +' ' Text +'import' Keyword.Namespace +' ' Text +'token' Name +'\n' Text + +'# comment' Comment.Single +'\n' Text + +'```\n' Literal.String.Backtick + +'\n' Text + +'some' Text +' ' Text +'more' Text +' ' Text +'text' Text +'\n' Text |
