Skip to content

Commit

Permalink
Normalize content
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 9, 2024
1 parent efbe0ee commit 5270305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Pages/Experiments/GitHubPostCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function mount(): void
public function create(): void
{
$repository = $this->getRepositoryUrl();
$markdown = sprintf("%s\n\n%s", $this->assembleFrontMatter(), $this->content);
$markdown = sprintf("%s\n\n%s\n", $this->assembleFrontMatter(), trim($this->content));
$url = sprintf('%s/new/%s/_posts?%s', $repository, $this->branch, http_build_query([
'filename' => Str::slug($this->postTitle).'.md',
'value' => $markdown,
Expand Down

0 comments on commit 5270305

Please sign in to comment.