Skip to content

Commit

Permalink
Added spaces in front of #
Browse files Browse the repository at this point in the history
  • Loading branch information
jason490 committed Nov 27, 2023
1 parent d716a96 commit 2dacfcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Submitty/Twig/TokenParser/MarkdownTokenParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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;
Expand Down Expand Up @@ -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, <<<EOF
Expand All @@ -89,7 +89,7 @@ public function getTests()
EOF
);

$body = new Node(array(new TextNode(" #Title\n\n paragraph\n\n code\n", 1)));
$body = new Node(array(new TextNode(" # Title\n\n paragraph\n\n code\n", 1)));
$node = new MarkdownNode($body, 1);

$tests['text with leading indent'] = array($node, <<<EOF
Expand Down

0 comments on commit 2dacfcc

Please sign in to comment.