From f7a33671d34f1cb61f472bd8d9292f1bab22d5d7 Mon Sep 17 00:00:00 2001 From: Pat Lathem Date: Tue, 3 Nov 2015 10:43:31 -0600 Subject: Some more markdown tests. Emoji in a code block, and italics/bold not at the beginning of the sentence --- utils/textgeneration.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'utils') diff --git a/utils/textgeneration.go b/utils/textgeneration.go index 2497d7dd4..2b722d605 100644 --- a/utils/textgeneration.go +++ b/utils/textgeneration.go @@ -17,12 +17,17 @@ 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 multi-line code block +emoji that should not render in code block: :ice_cream: ` + "```" + ` ` + "`monospace`" + ` [Link to Mattermost](www.mattermost.com) @@ -30,9 +35,15 @@ Inline Image with link, alt text, and hover text: ![Build Status](https://travis Line: *** +`, +` **[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 +51,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 -- cgit v1.2.3-1-g7c22 From 1f721388f4c11bcbf3c9ba1cc94214f2a77cad62 Mon Sep 17 00:00:00 2001 From: Pat Lathem Date: Tue, 3 Nov 2015 10:45:19 -0600 Subject: Make go format happy --- utils/textgeneration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/textgeneration.go b/utils/textgeneration.go index 2b722d605..e42429818 100644 --- a/utils/textgeneration.go +++ b/utils/textgeneration.go @@ -37,7 +37,7 @@ Line: *** `, -` **[2] - **[More Markdown Tests]** + ` **[2] - **[More Markdown Tests]** > i am a blockquote! > i am a 2nd multiline @@ -53,7 +53,7 @@ i am text right after a multiline quote, but not in the quote `, -` **[3]** - **[More Markdown Tests]** + ` **[3]** - **[More Markdown Tests]** Table -- cgit v1.2.3-1-g7c22 From e54092c4ac4e7fb50a121d2b76a3ad2dac39da41 Mon Sep 17 00:00:00 2001 From: Pat Lathem Date: Tue, 3 Nov 2015 10:46:52 -0600 Subject: Two more additional types of horizontal rules I missed --- utils/textgeneration.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/textgeneration.go b/utils/textgeneration.go index e42429818..fd0284a2e 100644 --- a/utils/textgeneration.go +++ b/utils/textgeneration.go @@ -33,8 +33,10 @@ emoji that should not render in code block: :ice_cream: [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]** -- cgit v1.2.3-1-g7c22