From 67231cbae1b74bb714c2b4c0978406acbdc151ef Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Tue, 22 Jan 2019 21:34:46 +0000 Subject: [PATCH] Tabs are allowed after header delimiter --- src/Components/Blocks/Header.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Components/Blocks/Header.php b/src/Components/Blocks/Header.php index 2be344f..bdae2be 100644 --- a/src/Components/Blocks/Header.php +++ b/src/Components/Blocks/Header.php @@ -60,11 +60,14 @@ final class Header implements Block $StrictMode = $State->getOrDefault(StrictMode::class); - if ($StrictMode->isEnabled() && isset($text[0]) and $text[0] !== ' ') { + if ( + $StrictMode->isEnabled() && isset($text[0]) + and $text[0] !== ' ' and $text[0] !== "\t" + ) { return null; } - $text = \trim($text, ' '); + $text = \trim($text, " \t"); return new self($text, $level); }