diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 9a4e3b7..589cd2f 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. The project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.0.3] - 2017-07-18 +### Added +- Newline parser + +## [1.0.2] - 2017-07-18 +### Changed +- Fix add parser issue having missing content. + ## [1.0.1] - 2017-07-17 ### Added - Add parser functionality. diff --git a/src/Parser/BBCodeParser.php b/src/Parser/BBCodeParser.php index cf3fdad..147dd84 100644 --- a/src/Parser/BBCodeParser.php +++ b/src/Parser/BBCodeParser.php @@ -110,6 +110,11 @@ final class BBCodeParser extends Parser { 'replace' => '$1', 'content' => '$1', ], + 'linebreak' => [ + 'pattern' => '/\r\n/', + 'replace' => '
', + 'content' => '', + ], ]; public function stripTags(string $source): string