Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Side by Side Diff: dart/pkg/dartdoc/lib/src/markdown/html_renderer.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of markdown;
2
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 String renderToHtml(List<Node> nodes) => new HtmlRenderer().render(nodes); 5 String renderToHtml(List<Node> nodes) => new HtmlRenderer().render(nodes);
8 6
9 /// Translates a parsed AST to HTML. 7 /// Translates a parsed AST to HTML.
10 class HtmlRenderer implements NodeVisitor { 8 class HtmlRenderer implements NodeVisitor {
11 static const _BLOCK_TAGS = const RegExp( 9 static const _BLOCK_TAGS = const RegExp(
12 'blockquote|h1|h2|h3|h4|h5|h6|hr|p|pre'); 10 'blockquote|h1|h2|h3|h4|h5|h6|hr|p|pre');
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } else { 50 } else {
53 buffer.add('>'); 51 buffer.add('>');
54 return true; 52 return true;
55 } 53 }
56 } 54 }
57 55
58 void visitElementAfter(Element element) { 56 void visitElementAfter(Element element) {
59 buffer.add('</${element.tag}>'); 57 buffer.add('</${element.tag}>');
60 } 58 }
61 } 59 }
OLDNEW
« no previous file with comments | « dart/pkg/dartdoc/lib/src/markdown/block_parser.dart ('k') | dart/pkg/dartdoc/lib/src/markdown/inline_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698