-
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
Кашин Александр #223
base: master
Are you sure you want to change the base?
Кашин Александр #223
Conversation
cs/Markdown/Md.cs
Outdated
|
||
namespace Markdown; | ||
|
||
public class Md : IMd |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/Markdown/Render/HtmlRenderer.cs
Outdated
|
||
private string Render(Token token) | ||
{ | ||
return _renders[token.Type].Render(token); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/Markdown/Render/HtmlRenderer.cs
Outdated
{ | ||
return _renders[token.Type].Render(token); | ||
} | ||
|
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
public char Current => text[position]; | ||
public void MoveNext() => position++; | ||
|
||
public string ReadWhile(Func<char, bool> predicate) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/Markdown/Tokenizer/Token.cs
Outdated
{ | ||
public TokenType Type { get; set; } | ||
public string Content { get; set; } = string.Empty; | ||
|
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
var context = new TokenizerContext(text); | ||
var tokens = new List<Token>(); | ||
|
||
foreach (var parser in parsers) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
{ | ||
var symbol = ctx.Current; | ||
|
||
if (symbol != '_') |
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.