You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Markdig.Tests/Specs/EmojiSpecs.generated.cs
+63-5Lines changed: 63 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ public void ExtensionsEmoji_Example001()
30
30
// Should be rendered as:
31
31
// <p>This is a test with a 😃 and a 😠 smiley</p>
32
32
33
-
TestParser.TestSpec("This is a test with a :) and a :angry: smiley","<p>This is a test with a 😃 and a 😠 smiley</p>","emojis|advanced+emojis",context:"Example 1\nSection Extensions / Emoji\n");
33
+
TestParser.TestSpec("This is a test with a :) and a :angry: smiley","<p>This is a test with a 😃 and a 😠 smiley</p>","pipetables+emojis|advanced+emojis",context:"Example 1\nSection Extensions / Emoji\n");
34
34
}
35
35
36
-
// An emoji needs to be preceded by a space:
36
+
// An emoji must not be preceded by a letter or digit:
37
37
[Test]
38
38
publicvoidExtensionsEmoji_Example002()
39
39
{
@@ -46,7 +46,7 @@ public void ExtensionsEmoji_Example002()
46
46
// Should be rendered as:
47
47
// <p>These are not:) an emoji with a:) x:angry:x</p>
48
48
49
-
TestParser.TestSpec("These are not:) an emoji with a:) x:angry:x","<p>These are not:) an emoji with a:) x:angry:x</p>","emojis|advanced+emojis",context:"Example 2\nSection Extensions / Emoji\n");
49
+
TestParser.TestSpec("These are not:) an emoji with a:) x:angry:x","<p>These are not:) an emoji with a:) x:angry:x</p>","pipetables+emojis|advanced+emojis",context:"Example 2\nSection Extensions / Emoji\n");
50
50
}
51
51
52
52
// Emojis can be followed by close punctuation (or any other characters):
@@ -62,7 +62,7 @@ public void ExtensionsEmoji_Example003()
62
62
// Should be rendered as:
63
63
// <p>We all need 😃, it makes us 💪. (and 👌).</p>
64
64
65
-
TestParser.TestSpec("We all need :), it makes us :muscle:. (and :ok_hand:).","<p>We all need 😃, it makes us 💪. (and 👌).</p>","emojis|advanced+emojis",context:"Example 3\nSection Extensions / Emoji\n");
65
+
TestParser.TestSpec("We all need :), it makes us :muscle:. (and :ok_hand:).","<p>We all need 😃, it makes us 💪. (and 👌).</p>","pipetables+emojis|advanced+emojis",context:"Example 3\nSection Extensions / Emoji\n");
66
66
}
67
67
68
68
// Sentences can end with emojis:
@@ -80,7 +80,65 @@ public void ExtensionsEmoji_Example004()
80
80
// <p>This is a sentence 👌
81
81
// and keeps going to the next line 😃</p>
82
82
83
-
TestParser.TestSpec("This is a sentence :ok_hand:\nand keeps going to the next line :)","<p>This is a sentence 👌\nand keeps going to the next line 😃</p>","emojis|advanced+emojis",context:"Example 4\nSection Extensions / Emoji\n");
83
+
TestParser.TestSpec("This is a sentence :ok_hand:\nand keeps going to the next line :)","<p>This is a sentence 👌\nand keeps going to the next line 😃</p>","pipetables+emojis|advanced+emojis",context:"Example 4\nSection Extensions / Emoji\n");
84
+
}
85
+
86
+
// Emojis are rendered inside pipe table cells with surrounding spaces:
0 commit comments