Parsedown::elements( $Elements )
Description
Source
File: bp-help/vendors/parsedown/Parsedown.php
1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 | protected function elements( array $Elements ) { $markup = '' ; $autoBreak = true; foreach ( $Elements as $Element ) { if ( empty ( $Element )) { continue ; } $autoBreakNext = (isset( $Element [ 'autobreak' ]) ? $Element [ 'autobreak' ] : isset( $Element [ 'name' ]) ); // (autobreak === false) covers both sides of an element $autoBreak = ! $autoBreak ? $autoBreak : $autoBreakNext ; $markup .= ( $autoBreak ? "\n" : '' ) . $this ->element( $Element ); $autoBreak = $autoBreakNext ; } $markup .= $autoBreak ? "\n" : '' ; return $markup ; } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.