From 7b5870007b10ba33fd7ea0968811d0aad34011e8 Mon Sep 17 00:00:00 2001 From: Fred LeBlanc Date: Sun, 16 Feb 2014 16:20:08 -0500 Subject: [PATCH] Add 'figure' to list of block-level elements in _MarkdownExtra_TmpImpl --- Michelf/Markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index 088b7cd..be966f7 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -1733,7 +1733,7 @@ abstract class _MarkdownExtra_TmpImpl extends \Michelf\Markdown { ### HTML Block Parser ### # Tags that are always treated as block tags: - 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'; + 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'; # Tags treated as block tags only if the opening tag is alone on its line: protected $context_block_tags_re = 'script|noscript|ins|del|iframe|object|source|track|param|math|svg|canvas|audio|video';