-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Зиновьева Милана #224
base: master
Are you sure you want to change the base?
Зиновьева Милана #224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Просмотри спецификацию, в особенности разделы экранирование и взаимодействие тегов
cs/MarkdownTests/BoldTests.cs
Outdated
[Test] | ||
public void Test_BoldInPartOfWord() | ||
{ | ||
Md.Render("__нач__але").Should().Be("<strong>нач</strong>але"); | ||
Md.Render("сер__еди__не").Should().Be("сер<strong>еди</strong>не"); | ||
Md.Render("кон__це.__").Should().Be("кон<strong>це.</strong>"); | ||
} | ||
|
||
[Test] | ||
public void Test_BoldSeveralWords() | ||
{ | ||
Md.Render("__нач__але").Should().Be("<strong>нач</strong>але"); | ||
Md.Render("сер__еди__не").Should().Be("сер<strong>еди</strong>не"); | ||
Md.Render("кон__це.__").Should().Be("кон<strong>це.</strong>"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
одинаковые тесты
cs/MarkdownTests/HeadingTests.cs
Outdated
[Test] | ||
public void Test_StandartHeading() | ||
{ | ||
Md.Render("#aaaa").Should().Be("<h1>aaaa</h1>"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Абзац, начинающийся с "# ", выделяется тегом
<h1>
в заголовок.
Посмотри внимательно спецификацию
cs/MarkdownTests/ScreenTests.cs
Outdated
Md.Render("\\aaa").Should().Be("\\aaa"); | ||
Md.Render("\\__aaa__\\").Should().Be("__aaa__"); | ||
Md.Render("\\_aaa_\\").Should().Be("_aaa_"); | ||
Md.Render("\\#aaa\\").Should().Be("#aaa"); | ||
Md.Render("\\\\#aa\\").Should().Be("\\#aa"); | ||
Md.Render("\\#aa").Should().Be("\\#aa"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Символ экранирования исчезает из результата, только если экранирует что-то.
Все эти кейсы неверны, последний слеш должен оставаться(т.к. ничего не экранирует), а первый при экранировании исчезать.
No description provided.