| Index: lib/dartdoc/dartdoc.dart
|
| diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
|
| index 23b0297831ba074b7e359f01446a0ddb54735656..57191283f9718f3c214726e17a676fc2e7f09cf6 100644
|
| --- a/lib/dartdoc/dartdoc.dart
|
| +++ b/lib/dartdoc/dartdoc.dart
|
| @@ -981,23 +981,25 @@ class Dartdoc {
|
| String getTypeComment(Type type) {
|
| String comment = _comments.find(type.span);
|
| if (comment == null) return null;
|
| - return md.markdownToHtml(comment);
|
| + return commentToHtml(comment);
|
| }
|
|
|
| /** Get the doc comment associated with the given method. */
|
| String getMethodComment(MethodMember method) {
|
| String comment = _comments.find(method.span);
|
| if (comment == null) return null;
|
| - return md.markdownToHtml(comment);
|
| + return commentToHtml(comment);
|
| }
|
|
|
| /** Get the doc comment associated with the given field. */
|
| String getFieldComment(FieldMember field) {
|
| String comment = _comments.find(field.span);
|
| if (comment == null) return null;
|
| - return md.markdownToHtml(comment);
|
| + return commentToHtml(comment);
|
| }
|
|
|
| + String commentToHtml(String comment) => md.markdownToHtml(comment);
|
| +
|
| /**
|
| * Converts [fullPath] which is understood to be a full path from the root of
|
| * the generated docs to one relative to the current file.
|
|
|