Skip to content

Extract shared logic in Markdown parsers to trait #161

Closed
@caendesilva

Description

The following snippet is present in several files and should be merged into a trait

if (isset($document->matter['title'])) {
  $this->title = $document->matter['title'];
} else {
  $this->title = $this->findTitleTag($document->body) ??
      Hyde::titleFromSlug($this->slug);
}

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions