Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public char ReadInlineOrCharacter(ParseOutput output)
 {
     foreach (var inline in _settings.Inlines)
     {
         if (inline.TryParse(this, output))
         {
             return(ReadCharacter());
         }
     }
     return(ReadCharacter());
 }