Skip to content

Commit

Permalink
Md class changed to use new classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxSaz committed Nov 24, 2024
1 parent 79d1e65 commit e149587
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cs/Markdown/Md.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Markdown.Renderers;
using Markdown.Tokens;

namespace Markdown;

public class Md
{
private readonly IRenderer _renderer = new HtmlRenderer();
private readonly MarkdownTokenParser _tokenParser = new();

public string Render(string text)
{
throw new NotImplementedException();
var tokens = _tokenParser.Parse(text);
return _renderer.Render(tokens);
}
}

0 comments on commit e149587

Please sign in to comment.