summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-11-03 12:49:11 -0800
committerCorey Hulen <corey@hulen.com>2015-11-03 12:49:11 -0800
commit1904a57891d92e84e90c197249fa8497dcee1d9d (patch)
treeacac5c991c803b8e49ed9c9a51640ef7e1a8115d /utils
parent34c4f77d8c4a8e85ebc0b96e74d8e5a048351f24 (diff)
parente54092c4ac4e7fb50a121d2b76a3ad2dac39da41 (diff)
downloadchat-1904a57891d92e84e90c197249fa8497dcee1d9d.tar.gz
chat-1904a57891d92e84e90c197249fa8497dcee1d9d.tar.bz2
chat-1904a57891d92e84e90c197249fa8497dcee1d9d.zip
Merge pull request #1284 from trashcan/PLT-834-add-more-text-parsing-tests
More markdown tests
Diffstat (limited to 'utils')
-rw-r--r--utils/textgeneration.go27
1 files changed, 26 insertions, 1 deletions
diff --git a/utils/textgeneration.go b/utils/textgeneration.go
index 2497d7dd4..fd0284a2e 100644
--- a/utils/textgeneration.go
+++ b/utils/textgeneration.go
@@ -17,22 +17,35 @@ const (
var FUZZY_STRINGS_POSTS = []string{
`**[1] - [Markdown Tests]**
_italics_
+more _italics_
**bold**
+more **bold**
**_bold-italic_**
+more **_bold-italic_*8
~~strikethrough~~
+more ~~strikethrough~~
` + "```" + `
multi-line code block<enter here>
multi-line code block
+emoji that should not render in code block: :ice_cream:
` + "```" + `
` + "`monospace`" + `
[Link to Mattermost](www.mattermost.com)
Inline Image with link, alt text, and hover text: ![Build Status](https://travis-ci.org/mattermost/platform.svg?branch=master)](https://travis-ci.org/mattermost/platform)
-Line:
+Three types of lines:
***
+___
+---
+`,
+ ` **[2] - **[More Markdown Tests]**
> i am a blockquote!
+> i am a 2nd multiline
+> quote.
+i am text right after a multiline quote, but not in the quote
+
* list item
* another list item
* indented list item
@@ -40,13 +53,25 @@ Line:
1. numbered list, item number 1
2. item number two
+`,
+
+ ` **[3]** - **[More Markdown Tests]**
+
Table
+
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| Left column 1 | this text | $100 |
| Left column 2 | is | $10 |
| Left column 3 | centered | $1 |
+Ugly table
+
+Markdown | Less | Pretty
+--- | --- | ---
+*Still* | ~~renders~~ | **nicely**
+1 | 2 | 3
+
# Large heading
## Smaller heading
### Even smaller heading