Remove 4 public methods from public API (dart-lang/markdown#312)
diff --git a/pkgs/markdown/CHANGELOG.md b/pkgs/markdown/CHANGELOG.md index 124c155..5c15d30 100644 --- a/pkgs/markdown/CHANGELOG.md +++ b/pkgs/markdown/CHANGELOG.md
@@ -1,3 +1,9 @@ +## 3.0.0-dev + +* **Breaking change:** Remove `ListSyntax.removeLeadingEmptyLine`, + `ListSyntax.removeTrailingEmptyLines`, `TableSyntax.parseAlignments`, + `TableSyntax.parseRow`. + ## 2.1.8 * Deprecate the _public_ methods `ListSyntax.removeLeadingEmptyLine`,
diff --git a/pkgs/markdown/lib/src/block_parser.dart b/pkgs/markdown/lib/src/block_parser.dart index 74d7839..f898e88 100644 --- a/pkgs/markdown/lib/src/block_parser.dart +++ b/pkgs/markdown/lib/src/block_parser.dart
@@ -801,11 +801,6 @@ } } - @Deprecated( - 'Public method was intended to be private; will be removed in a major ' - 'version release, as early as markdown 3.0.0') - void removeLeadingEmptyLine(ListItem item) => _removeLeadingEmptyLine(item); - /// Removes any trailing empty lines and notes whether any items are separated /// by such lines. bool _removeTrailingEmptyLines(List<ListItem> items) { @@ -823,12 +818,6 @@ return anyEmpty; } - @Deprecated( - 'Public method was intended to be private; will be removed in a major ' - 'version release, as early as markdown 3.0.0') - bool removeTrailingEmptyLines(List<ListItem> items) => - _removeTrailingEmptyLines(items); - static int _expandedTabLength(String input) { var length = 0; for (var char in input.codeUnits) { @@ -948,11 +937,6 @@ }).toList(); } - @Deprecated( - 'Public method was intended to be private; will be removed in a major ' - 'version release, as early as markdown 3.0.0') - List<String> parseAlignments(String line) => _parseAlignments(line); - /// Parses a table row at the current line into a table row element, with /// parsed table cells. /// @@ -1026,13 +1010,6 @@ return Element('tr', row); } - @Deprecated( - 'Public method was intended to be private; will be removed in a major ' - 'version release, as early as markdown 3.0.0') - Element parseRow( - BlockParser parser, List<String> alignments, String cellType) => - _parseRow(parser, alignments, cellType); - /// Walks past whitespace in [line] starting at [index]. /// /// Returns the index of the first non-whitespace character.
diff --git a/pkgs/markdown/lib/src/version.dart b/pkgs/markdown/lib/src/version.dart index 7369037..5dce1c2 100644 --- a/pkgs/markdown/lib/src/version.dart +++ b/pkgs/markdown/lib/src/version.dart
@@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '2.1.8'; +const packageVersion = '3.0.0-dev';
diff --git a/pkgs/markdown/pubspec.yaml b/pkgs/markdown/pubspec.yaml index b1ba48d..4a0972b 100644 --- a/pkgs/markdown/pubspec.yaml +++ b/pkgs/markdown/pubspec.yaml
@@ -1,5 +1,5 @@ name: markdown -version: 2.1.8 +version: 3.0.0-dev description: A portable Markdown library written in Dart that can parse Markdown into HTML.