mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 13:08:01 +00:00
[analyzer] Update diagnostic messages to use markdown codeblocks
To prepare for the site dropping prettify. Change-Id: I90367bd67ae0216572aa9defe6aa180a34942e35 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349761 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
parent
6d3f389e59
commit
5b980d6995
File diff suppressed because it is too large
Load diff
|
@ -65,10 +65,7 @@ class ErrorCodeDocumentationBlock extends ErrorCodeDocumentationPart {
|
|||
this.uri});
|
||||
|
||||
@override
|
||||
String formatForDocumentation() => fileType == 'dart' || fileType == 'yaml'
|
||||
? ['{% prettify $fileType tag=pre+code %}', text, '{% endprettify %}']
|
||||
.join('\n')
|
||||
: ['```$fileType', text, '```'].join('\n');
|
||||
String formatForDocumentation() => ['```$fileType', text, '```'].join('\n');
|
||||
}
|
||||
|
||||
/// A portion of an error code's documentation. This could be free form
|
||||
|
|
Loading…
Reference in a new issue