Review comments
This commit is contained in:
@@ -78,6 +78,15 @@ void testStrikethroughWorks() {
|
||||
PASS();
|
||||
}
|
||||
|
||||
void testEscapedTildeDoesNotToggleStrikethrough() {
|
||||
printf("testEscapedTildeDoesNotToggleStrikethrough...\n");
|
||||
auto spans = MdParser::parseInline("foo \\~~bar~~ baz");
|
||||
ASSERT_EQ(flattenText(spans), "foo ~~bar~~ baz");
|
||||
ASSERT_EQ(spans.size(), 1);
|
||||
ASSERT_EQ(spans[0].style, EpdFontFamily::REGULAR);
|
||||
PASS();
|
||||
}
|
||||
|
||||
void testUnderscoreBoldWorks() {
|
||||
printf("testUnderscoreBoldWorks...\n");
|
||||
auto spans = MdParser::parseInline("foo __bar__ baz");
|
||||
@@ -116,6 +125,7 @@ int main() {
|
||||
testAsteriskEmphasisStillWorks();
|
||||
testStrikethroughWorks();
|
||||
testUnderscoreBoldWorks();
|
||||
testEscapedTildeDoesNotToggleStrikethrough();
|
||||
testNestedUnorderedListIndentLevel();
|
||||
testNestedOrderedListIndentLevel();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user