Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MrSasha00
Copy link

No description provided.


namespace Markdown;

public class Md : IMd

This comment was marked as resolved.


private string Render(Token token)
{
return _renders[token.Type].Render(token);

This comment was marked as resolved.

{
return _renders[token.Type].Render(token);
}

This comment was marked as resolved.

public char Current => text[position];
public void MoveNext() => position++;

public string ReadWhile(Func<char, bool> predicate)

This comment was marked as resolved.

{
public TokenType Type { get; set; }
public string Content { get; set; } = string.Empty;

This comment was marked as resolved.

var context = new TokenizerContext(text);
var tokens = new List<Token>();

foreach (var parser in parsers)

This comment was marked as resolved.

{
var symbol = ctx.Current;

if (symbol != '_')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Такие штуки лучше в константы выносить, чтобы если что в одном месте поменять можно было

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants