multilineReleaseNotes method

String? multilineReleaseNotes(
  1. Element rawReleaseNotes
)

Implementation

String? multilineReleaseNotes(Element rawReleaseNotes) {
  final innerHtml = rawReleaseNotes.innerHtml;
  String? releaseNotes = innerHtml;

  if (releaseNotesSpan.hasMatch(innerHtml)) {
    releaseNotes = releaseNotesSpan.firstMatch(innerHtml)!.group(1);
  }
  // Detect default multiline replacement
  releaseNotes = releaseNotes!.replaceAll('<br>', '\n');

  return releaseNotes;
}