From 2dacfccdd19c49bf842b1302075251ff24516dd9 Mon Sep 17 00:00:00 2001 From: Jason Ng <116290832+jason490@users.noreply.github.com> Date: Mon, 27 Nov 2023 10:24:35 -0500 Subject: [PATCH] Added spaces in front of # --- .../Twig/TokenParser/MarkdownTokenParserTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Submitty/Twig/TokenParser/MarkdownTokenParserTest.php b/tests/Submitty/Twig/TokenParser/MarkdownTokenParserTest.php index 3c60560..0ed0ee6 100644 --- a/tests/Submitty/Twig/TokenParser/MarkdownTokenParserTest.php +++ b/tests/Submitty/Twig/TokenParser/MarkdownTokenParserTest.php @@ -18,7 +18,7 @@ class MarkdownTokenParserTest extends TestCase { public function testConstructor() { - $body = new Node(array(new TextNode("#Title\n\nparagraph\n", 1))); + $body = new Node(array(new TextNode("# Title\n\nparagraph\n", 1))); $node = new MarkdownNode($body, 1); $this->assertEquals($body, $node->getNode('body')); @@ -32,8 +32,8 @@ public function testConstructor() */ public function testMarkdownPrepareBehavior() { - $body = " #Title\n\n paragraph\n\n code"; - $bodyPrepared = "#Title\n\nparagraph\n\n code"; + $body = " # Title\n\n paragraph\n\n code"; + $bodyPrepared = "# Title\n\nparagraph\n\n code"; ob_start(); echo $body; @@ -70,7 +70,7 @@ public function getTests() { $tests = array(); - $body = new Node(array(new TextNode("#Title\n\nparagraph\n", 1))); + $body = new Node(array(new TextNode("# Title\n\nparagraph\n", 1))); $node = new MarkdownNode($body, 1); $tests['simple text'] = array($node, <<