Skip to content

Commit 8c844a1

Browse files
committed
Merge pull request #726 from dart-lang/sl-highlighting
pretty print all code elements
2 parents ec0ddb4 + 4995f84 commit 8c844a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/markdown_processor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ String processDocsAsMarkdown(ModelElement element) {
5959
String html = renderMarkdownToHtml(element.documentation, element);
6060
Document doc = parse(html);
6161
doc.querySelectorAll('script').forEach((s) => s.remove());
62-
doc.querySelectorAll('pre > code').forEach((e) {
62+
doc.querySelectorAll('code').forEach((e) {
6363
e.classes.addAll(['prettyprint', 'lang-dart']);
6464
});
6565
return doc.body.innerHtml;

0 commit comments

Comments
 (0)