public static IEnumerable <HtmlNode> ToHtmlNodes(TextSource source, TextileParseSettings settings) { var parse = new ParseState(source, settings); var output = new ParseOutput(); var state = new ParagraphState(); state.TryParse(parse, output); return(output.GetNodes()); }
public char ReadInlineOrCharacter(ParseOutput output) { foreach (var inline in _settings.Inlines) { if (inline.TryParse(this, output)) { return(ReadCharacter()); } } return(ReadCharacter()); }