소스 검색

Restructuration extension markdown

Sangfroid 1 개월 전
부모
커밋
c38435b846

+ 4 - 1
src/Markdown/ColorExtension.php → src/Markdown/Extension/ColorExtension.php

@@ -1,7 +1,10 @@
 <?php
 
-namespace App\Markdown;
+namespace App\Markdown\Extension;
 
+use App\Markdown\Inline\ColorText;
+use App\Markdown\Parser\ColorParser;
+use App\Markdown\Render\ColorRenderer;
 use League\CommonMark\Environment\EnvironmentBuilderInterface;
 use League\CommonMark\Extension\ExtensionInterface;
 

+ 1 - 1
src/Markdown/ColorText.php → src/Markdown/Inline/ColorText.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace App\Markdown;
+namespace App\Markdown\Inline;
 
 use League\CommonMark\Node\Inline\AbstractInline;
 

+ 2 - 1
src/Markdown/ColorParser.php → src/Markdown/Parser/ColorParser.php

@@ -1,7 +1,8 @@
 <?php
 
-namespace App\Markdown;
+namespace App\Markdown\Parser;
 
+use App\Markdown\Inline\ColorText;
 use League\CommonMark\Parser\Inline\InlineParserInterface;
 use League\CommonMark\Parser\Inline\InlineParserMatch;
 use League\CommonMark\Parser\InlineParserContext;

+ 2 - 1
src/Markdown/ColorRenderer.php → src/Markdown/Render/ColorRenderer.php

@@ -1,7 +1,8 @@
 <?php
 
-namespace App\Markdown;
+namespace App\Markdown\Render;
 
+use App\Markdown\Inline\ColorText;
 use League\CommonMark\Node\Node;
 use League\CommonMark\Renderer\ChildNodeRendererInterface;
 use League\CommonMark\Renderer\NodeRendererInterface;

+ 1 - 1
src/Service/MarkdownParser.php

@@ -2,7 +2,7 @@
 
 namespace App\Service;
 
-use App\Markdown\ColorExtension;
+use App\Markdown\Extension\ColorExtension;
 use Embed\Embed;
 use League\CommonMark\Environment\Environment;
 use League\CommonMark\Extension\Autolink\AutolinkExtension;