Skip to content

Commit

Permalink
support both alt and alt_text
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Mar 1, 2018
1 parent 5b291f8 commit b0ad83e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/src/Grav/Common/Page/Medium/Medium.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public function parsedownElement($title = null, $alt = null, $class = null, $id
$attributes['alt'] = $alt;
} elseif (!empty($this->items['alt'])) {
$attributes['alt'] = $this->items['alt'];
} elseif (!empty($this->items['alt_text'])) {
$attributes['alt'] = $this->items['alt_text'];
}
}

Expand Down

0 comments on commit b0ad83e

Please sign in to comment.