Skip to content

Instantly share code, notes, and snippets.

@jozefchmelar
Created November 21, 2019 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozefchmelar/a9f907207ed43043d478ce7dccba6e66 to your computer and use it in GitHub Desktop.
Save jozefchmelar/a9f907207ed43043d478ce7dccba6e66 to your computer and use it in GitHub Desktop.
HtmlVisitor
public void BeginVisit(IVisitableNode node)
{
var baseAst = (node as BaseAst);
Write(baseAst.StartTag);
}
public void EndVisit(IVisitableNode node)
{
var baseAst = (node as BaseAst);
Write(baseAst.EndTag);
//from https://github.com/jozefchmelar/MarkdownCompiler/blob/806379dff263f444bb1d141304f25aee06e5f410/src/Markdown.Grammar/Visitors/HtmlConcreteVisitor.cs#L7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment