Skip to content

Commit 7b58700

Browse files
committed
Add 'figure' to list of block-level elements in _MarkdownExtra_TmpImpl
1 parent 6f952ee commit 7b58700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Michelf/Markdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ protected function _stripLinkDefinitions_callback($matches) {
17331733
### HTML Block Parser ###
17341734

17351735
# Tags that are always treated as block tags:
1736-
protected $block_tags_re = 'p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend|article|section|nav|aside|hgroup|header|footer|figcaption';
1736+
protected $block_tags_re = 'p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend|article|section|nav|aside|hgroup|header|footer|figcaption|figure';
17371737

17381738
# Tags treated as block tags only if the opening tag is alone on its line:
17391739
protected $context_block_tags_re = 'script|noscript|ins|del|iframe|object|source|track|param|math|svg|canvas|audio|video';

0 commit comments

Comments
 (0)