@@ 83-89 (lines=7) @@ | ||
80 | { |
|
81 | $content = []; |
|
82 | if (strncmp($lines[$current], '<!--', 4) === 0) { // html comment |
|
83 | for ($i = $current, $count = count($lines); $i < $count; $i++) { |
|
84 | $line = $lines[$i]; |
|
85 | $content[] = $line; |
|
86 | if (strpos($line, '-->') !== false) { |
|
87 | break; |
|
88 | } |
|
89 | } |
|
90 | } else { |
|
91 | $tag = rtrim(substr($lines[$current], 1, min(strpos($lines[$current], '>'), strpos($lines[$current] . ' ', ' ')) - 1), '/'); |
|
92 | $level = 0; |
@@ 220-226 (lines=7) @@ | ||
217 | { |
|
218 | // consume until newline |
|
219 | $content = []; |
|
220 | for ($i = $current, $count = count($lines); $i < $count; $i++) { |
|
221 | if (ltrim($lines[$i]) !== '') { |
|
222 | $content[] = $lines[$i]; |
|
223 | } else { |
|
224 | break; |
|
225 | } |
|
226 | } |
|
227 | $block = [ |
|
228 | 'paragraph', |
|
229 | 'content' => $this->parseInline(implode("\n", $content)), |