@@ -69,7 +69,7 @@ class Documentation {
69
69
String tempHtml = renderMarkdownToHtml (raw, element);
70
70
_asHtmlDocument = parse (tempHtml);
71
71
_asHtmlDocument.querySelectorAll ('script' ).forEach ((s) => s.remove ());
72
- _asHtmlDocument.querySelectorAll ('code ' ).forEach ((e) {
72
+ _asHtmlDocument.querySelectorAll ('pre ' ).forEach ((e) {
73
73
e.classes.addAll (['prettyprint' , 'lang-dart' ]);
74
74
});
75
75
_asHtml = _asHtmlDocument.body.innerHtml;
@@ -98,9 +98,9 @@ class _InlineCodeSyntax extends md.InlineSyntax {
98
98
@override
99
99
bool onMatch (md.InlineParser parser, Match match) {
100
100
var element = new md.Element .text ('code' , htmlEscape (match[1 ]));
101
- var c = element.attributes.putIfAbsent ("class" , () => "" );
102
- c = (c.isEmpty ? "" : " " ) + "prettyprint" ;
103
- element.attributes["class" ] = c;
101
+ // var c = element.attributes.putIfAbsent("class", () => "");
102
+ // c = (c.isEmpty ? "" : " ") + "prettyprint";
103
+ // element.attributes["class"] = c;
104
104
parser.addNode (element);
105
105
return true ;
106
106
}
@@ -124,7 +124,9 @@ NodeList<CommentReference> _getCommentRefs(ModelElement modelElement) {
124
124
if (modelElement.element.node is AnnotatedNode ) {
125
125
if ((modelElement.element.node as AnnotatedNode ).documentationComment !=
126
126
null ) {
127
- return (modelElement.element.node as AnnotatedNode ).documentationComment.references;
127
+ return (modelElement.element.node as AnnotatedNode )
128
+ .documentationComment
129
+ .references;
128
130
}
129
131
} else if (modelElement.element is LibraryElement ) {
130
132
// handle anonymous libraries
0 commit comments