Skip to content

Commit 2eca64a

Browse files
committed
making sure markdown documentation is trimmed
1 parent 23e9c81 commit 2eca64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatternLab/PatternData/Rules/DocumentationRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function run($depth, $ext, $path, $pathName, $name) {
7575
$patternStoreKey = ($patternSubtypeDoc) ? $docPartial."-plsubtype" : $docPartial;
7676

7777
$patternStoreData = array("category" => $category,
78-
"desc" => $markdown,
78+
"desc" => trim($markdown),
7979
"descExists" => true,
8080
"meta" => $yaml,
8181
"full" => $doc);

0 commit comments

Comments
 (0)